diff options
author | niemeyer <devnull@localhost> | 2004-02-25 20:02:23 +0000 |
---|---|---|
committer | niemeyer <devnull@localhost> | 2004-02-25 20:02:23 +0000 |
commit | 037f02539c18072476245c2fb24220a8c620d5f3 (patch) | |
tree | aa19d9138499cf3f24758f4ba7b6b0aae7840249 /lib/rpmlock.c | |
parent | 0f828b95fce2b1f150748e37582dff1d767f6951 (diff) | |
download | rpm-037f02539c18072476245c2fb24220a8c620d5f3.tar.gz rpm-037f02539c18072476245c2fb24220a8c620d5f3.tar.bz2 rpm-037f02539c18072476245c2fb24220a8c620d5f3.zip |
Oops. "path" was being allocated with 1 byte less than necessary.
CVS patchset: 7131
CVS date: 2004/02/25 20:02:23
Diffstat (limited to 'lib/rpmlock.c')
-rw-r--r-- | lib/rpmlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmlock.c b/lib/rpmlock.c index 65fcf3d66..cb26e90e8 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)); + strlen(RPMLOCK_FILE)+1); if (!path) { free(lock); return NULL; |