From 2cccd0ff2b26c782dbd05d589b7695cab5e17458 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 7 Dec 2006 00:26:18 +0100 Subject: Imported from util-linux-2.12d tarball. --- disk-utils/mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'disk-utils/mkfs.c') 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); -- cgit v1.2.3-55-g7522