From e7b4a0bced615df96de42a8a6f72b31834aa9a29 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 28 May 1996 23:42:01 +0000 Subject: [PATCH] . --- src/dircolors.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dircolors.c b/src/dircolors.c index 6a50f7492b..296d13d06a 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"); } -- 2.47.2