projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d671a65
)
additional check for running off end of string
author
root
<devnull@localhost>
Wed, 10 Jul 1996 01:38:14 +0000
(
01:38
+0000)
committer
root
<devnull@localhost>
Wed, 10 Jul 1996 01:38:14 +0000
(
01:38
+0000)
CVS patchset: 753
CVS date: 1996/07/10 01:38:14
build/files.c
patch
|
blob
|
history
diff --git
a/build/files.c
b/build/files.c
index
ac931b3
..
215ad6e
100644
(file)
--- a/
build/files.c
+++ b/
build/files.c
@@
-517,7
+517,7
@@
static int add_file(struct file_entry **festack, const char *name,
while (*prefixTest == '/') {
prefixTest++; /* Skip leading "/" */
}
- while (*prefixPtr && (*prefixTest == *prefixPtr)) {
+ while (*prefixPtr &&
*prefixTest &&
(*prefixTest == *prefixPtr)) {
prefixPtr++;
prefixTest++;
}