diff options
author | Paul Nasrat <pnasrat@redhat.com> | 2007-04-16 13:20:30 +0100 |
---|---|---|
committer | Paul Nasrat <pnasrat@redhat.com> | 2007-04-16 13:20:30 +0100 |
commit | af236859a0375b1423845498b97a5dc7d7834bc1 (patch) | |
tree | 3e4dec4ce97f437a94bd892abf681302504fef61 /rpmio | |
parent | 367d30909c9f8caf8882a665b3e4007c0b6ff9d0 (diff) | |
download | librpm-tizen-af236859a0375b1423845498b97a5dc7d7834bc1.tar.gz librpm-tizen-af236859a0375b1423845498b97a5dc7d7834bc1.tar.bz2 librpm-tizen-af236859a0375b1423845498b97a5dc7d7834bc1.zip |
Fix off-by-one error in glob call.
Fix from OpenSuSE
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/rpmrpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c index 8156a694f..ee5f9e82d 100644 --- a/rpmio/rpmrpc.c +++ b/rpmio/rpmrpc.c @@ -1415,7 +1415,7 @@ int Glob_pattern_p (const char * pattern, int quote) case '*': return (1); case '\\': - if (quote && p[1] != '\0') + if (quote && *p != '\0') p++; continue; |