Skip to content

Instantly share code, notes, and snippets.

@matiaskorhonen
Last active January 30, 2019 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matiaskorhonen/2306da951f3b82a925c2a9ed30727c69 to your computer and use it in GitHub Desktop.
Save matiaskorhonen/2306da951f3b82a925c2a9ed30727c69 to your computer and use it in GitHub Desktop.
--- array.c~ Thu Dec 21 14:39:19 1995
+++ array.c Thu Dec 21 14:36:06 1995
@@ -283,8 +283,8 @@
end = len + end;
if (end < 0) end = 0;
}
- if (len < end) end = len;
- if (beg < end) {
+ if (end > len) end = len;
+ if (beg > end) {
*lenp = 0;
}
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment