projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cppfiles.c (actual_directory): Don't write beyond `dir' when it contains "".
[gcc.git]
/
gcc
/
cppfiles.c
diff --git
a/gcc/cppfiles.c
b/gcc/cppfiles.c
index 2a8f01c38353b1297cac65c27bce1d53d0ad8a8f..2078989a62c41ea6f4171cf0f4e47f67779079f7 100644
(file)
--- a/
gcc/cppfiles.c
+++ b/
gcc/cppfiles.c
@@
-1041,8
+1041,8
@@
actual_directory (pfile, fname)
}
else
{
-
dir[0] = '.'
;
- dir
[1] = '\0'
;
+
free (dir)
;
+ dir
= xstrdup (".")
;
dlen = 1;
}