Use standard POSIX "ustar" format for the scratch disk.
[pintos-anon] / src / lib / string.c
index 01e4ecb378d462e4fb639ea01db177cb8070f977..d223c89f48493793c52dc45dbcf288328776fd6f 100644 (file)
@@ -190,7 +190,7 @@ strstr (const char *haystack, const char *needle)
     {
       size_t i;
 
-      for (i = 0; i < haystack_len - needle_len; i++)
+      for (i = 0; i <= haystack_len - needle_len; i++)
         if (!memcmp (haystack + i, needle, needle_len))
           return (char *) haystack + i;
     }