diff options
author | Karel Zak | 2006-12-07 00:26:18 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:26:18 +0100 |
commit | 2cccd0ff2b26c782dbd05d589b7695cab5e17458 (patch) | |
tree | 45ebc5937d2e083c12b58bdeffc1b1a2046c9598 /disk-utils | |
parent | Imported from util-linux-2.12b tarball. (diff) | |
download | kernel-qcow2-util-linux-2cccd0ff2b26c782dbd05d589b7695cab5e17458.tar.gz kernel-qcow2-util-linux-2cccd0ff2b26c782dbd05d589b7695cab5e17458.tar.xz kernel-qcow2-util-linux-2cccd0ff2b26c782dbd05d589b7695cab5e17458.zip |
Imported from util-linux-2.12d tarball.
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/mkfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/mkfs.c b/disk-utils/mkfs.c index c5aa7566b..e04877b86 100644 --- a/disk-utils/mkfs.c +++ b/disk-utils/mkfs.c @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) oldpath = getenv("PATH"); if (!oldpath) oldpath = "/bin"; - newpath = (char *) malloc(strlen(oldpath) + sizeof(SEARCH_PATH) + 2); + newpath = (char *) malloc(strlen(oldpath) + sizeof(SEARCH_PATH) + 3); if (!newpath) { fprintf(stderr, _("%s: Out of memory!\n"), "mkfs"); exit(1); |