]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - libiberty/lrealpath.c
merge from gcc
[thirdparty/binutils-gdb.git] / libiberty / lrealpath.c
index 9a58c0b83b82c9fe1ac6fb4eca0a5a6ecb3d10fc..b27c8de990e974c7294dfc4024ef44fbd3844a52 100644 (file)
@@ -117,7 +117,7 @@ lrealpath (const char *filename)
       {
        /* PATH_MAX is bounded.  */
        char *buf, *rp, *ret;
-       buf = malloc (path_max);
+       buf = (char *) malloc (path_max);
        if (buf == NULL)
          return NULL;
        rp = realpath (filename, buf);