summaryrefslogtreecommitdiffstats
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorgkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-24 20:04:10 +0000
committergkm <gkm@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-24 20:04:10 +0000
commitf7fe59feaa27eecd97449b595ce3a7dfa7ba039e (patch)
tree5c8fd698f16c17800afb5191249554caaaadbba9 /gcc/cppfiles.c
parent0a40c6ad89a00534819da8398148ea431e3211ae (diff)
downloadppe42-gcc-f7fe59feaa27eecd97449b595ce3a7dfa7ba039e.tar.gz
ppe42-gcc-f7fe59feaa27eecd97449b595ce3a7dfa7ba039e.zip
* cppfiles.c (actual_directory): Don't write beyond `dir'
when it contains "". * real.c (asctoeg): Stay within bounds of etens[][]. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35944 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 2a8f01c3835..2078989a62c 100644
--- 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;
}
OpenPOWER on IntegriCloud