summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-05-28 23:42:01 +0000
committerJim Meyering <jim@meyering.net>1996-05-28 23:42:01 +0000
commite7b4a0bced615df96de42a8a6f72b31834aa9a29 (patch)
tree2d35de44dfddbf6aa4aefe98b44aa9c85d596317
parenta3b44d2fd574304e1c667a184a264f4dae084468 (diff)
downloadcoreutils-e7b4a0bced615df96de42a8a6f72b31834aa9a29.tar.xz
.
-rw-r--r--src/dircolors.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dircolors.c b/src/dircolors.c
index 6a50f7492..296d13d06 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -288,8 +288,7 @@ main (int argc, char *argv[])
if (p != NULL && *p != '\0')
{
/* Note: deliberate leak. It's not worth freeing this. */
- input_file = xmalloc (strlen (p) + 1
- + strlen (USER_FILE) + 1);
+ input_file = xmalloc (strlen (p) + 1 + strlen (USER_FILE) + 1);
stpcpy (stpcpy (stpcpy (input_file, p), "/"), USER_FILE);
fp = fopen (input_file, "r");
}