From: Jim Meyering Date: Tue, 28 May 1996 23:42:01 +0000 (+0000) Subject: . X-Git-Tag: TEXTUTILS-1_15~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b4a0bced615df96de42a8a6f72b31834aa9a29;p=thirdparty%2Fcoreutils.git . --- 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"); }