OSDN Git Service

we crash if the first argument to realpath() is non-null as well so lets mark both...
authorMike Frysinger <vapier@gentoo.org>
Thu, 8 Feb 2007 18:21:14 +0000 (18:21 -0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 8 Feb 2007 18:21:14 +0000 (18:21 -0000)
include/stdlib.h

index 276f1ba..9ffe5a6 100644 (file)
@@ -637,7 +637,7 @@ extern char *canonicalize_file_name (__const char *__name)
    name in RESOLVED.  */
 /* we choose to handle __resolved==NULL as crash :) */
 extern char *realpath (__const char *__restrict __name,
-                      char *__restrict __resolved) __THROW __wur __nonnull((2));
+                      char *__restrict __resolved) __THROW __wur __nonnull((1,2));
 #endif