OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1244d
)
merge from gcc
author
dj
<dj>
Sun, 24 Nov 2002 15:59:22 +0000
(15:59 +0000)
committer
dj
<dj>
Sun, 24 Nov 2002 15:59:22 +0000
(15:59 +0000)
libiberty/ChangeLog
patch
|
blob
|
history
libiberty/make-relative-prefix.c
patch
|
blob
|
history
diff --git
a/libiberty/ChangeLog
b/libiberty/ChangeLog
index
57ff7da
..
c58dc1f
100644
(file)
--- a/
libiberty/ChangeLog
+++ b/
libiberty/ChangeLog
@@
-1,3
+1,8
@@
+2002-11-24 Nick Clifton <nickc@redhat.com>
+
+ * make-relative-prefix.c (make_relative_prefix): Ensure return
+ string is empty before using strcat to construct it.
+
2002-11-22 Daniel Jacobowitz <drow@mvista.com>
* Makefile.in: Add make-relative-prefix.c.
diff --git
a/libiberty/make-relative-prefix.c
b/libiberty/make-relative-prefix.c
index
ae1ac54
..
ef9177e
100644
(file)
--- a/
libiberty/make-relative-prefix.c
+++ b/
libiberty/make-relative-prefix.c
@@
-362,6
+362,7
@@
make_relative_prefix (progname, bin_prefix, prefix)
return NULL;
/* Build up the pathnames in argv[0]. */
+ *ret = '\0';
for (i = 0; i < prog_num; i++)
strcat (ret, prog_dirs[i]);