summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:18 +0100
committerKarel Zak2006-12-07 00:26:18 +0100
commit2cccd0ff2b26c782dbd05d589b7695cab5e17458 (patch)
tree45ebc5937d2e083c12b58bdeffc1b1a2046c9598 /disk-utils/mkfs.c
parentImported from util-linux-2.12b tarball. (diff)
downloadkernel-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/mkfs.c')
-rw-r--r--disk-utils/mkfs.c2
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);