summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.c
diff options
context:
space:
mode:
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);