projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3b44d2
)
.
author
Jim Meyering
<jim@meyering.net>
Tue, 28 May 1996 23:42:01 +0000
(23:42 +0000)
committer
Jim Meyering
<jim@meyering.net>
Tue, 28 May 1996 23:42:01 +0000
(23:42 +0000)
src/dircolors.c
patch
|
blob
|
history
diff --git
a/src/dircolors.c
b/src/dircolors.c
index 6a50f7492b763b2d1fbc154ece3382bcc91c8980..296d13d06ac03bd773e05003f57ffb1a62972106 100644
(file)
--- 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");
}