It was 2 bytes, not one. Amateurs.. humpf. ;-)
authorniemeyer <devnull@localhost>
Wed, 25 Feb 2004 20:04:36 +0000 (20:04 +0000)
committerniemeyer <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

index cb26e90..031a531 100644 (file)
@@ -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;