summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rpmlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmlock.c b/lib/rpmlock.c
index cb26e90e8..031a531fe 100644
--- 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;