+2004-05-04 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (check_sysfile): Don't scan string twice.
+
2004-05-03 Corinna Vinschen <corinna@vinschen.de>
* dir.cc (writable_directory): Remove.
NUL. The length returned is the path without
*any* trailing NULs. We also have to handle (or
at least not die from) corrupted paths. */
- if (memchr (contents, 0, got) != NULL)
- res = strlen (contents);
+ char *end;
+ if ((end = (char *) memchr (contents, 0, got)) != NULL)
+ res = end - contents;
else
res = got;
}