projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
037f025
)
It was 2 bytes, not one. Amateurs.. humpf. ;-)
author
niemeyer
<devnull@localhost>
Wed, 25 Feb 2004 20:04:36 +0000
(20:04 +0000)
committer
niemeyer
<devnull@localhost>
Wed, 25 Feb 2004 20:04:36 +0000
(20:04 +0000)
CVS patchset: 7132
CVS date: 2004/02/25 20:04:36
lib/rpmlock.c
patch
|
blob
|
history
diff --git
a/lib/rpmlock.c
b/lib/rpmlock.c
index
cb26e90
..
031a531
100644
(file)
--- a/
lib/rpmlock.c
+++ b/
lib/rpmlock.c
@@
-34,7
+34,7
@@
static rpmlock *rpmlock_new(const char *rootdir)
if (lock) {
mode_t oldmask = umask(022);
char *path = (char *)malloc(strlen(rootdir)+
- strlen(RPMLOCK_FILE)+
1
);
+ strlen(RPMLOCK_FILE)+
2
);
if (!path) {
free(lock);
return NULL;