diff options
Diffstat (limited to 'find')
-rw-r--r-- | find/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/find/print.c b/find/print.c index 8b555343..88635b54 100644 --- a/find/print.c +++ b/find/print.c @@ -958,7 +958,7 @@ do_fprintf (struct format_val *dest, case 'h': /* leading directories part of path */ /* sanitised */ { - char *pname = strdup (pathname); + char *pname = xstrdup (pathname); /* Remove trailing slashes - unless it's the root '/' directory. */ char *s = pname + strlen (pname) -1; |