diff options
Diffstat (limited to 'gnu/usr.bin/patch/patch.c')
-rw-r--r-- | gnu/usr.bin/patch/patch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/patch/patch.c b/gnu/usr.bin/patch/patch.c index 8e06c33..fbf7e70 100644 --- a/gnu/usr.bin/patch/patch.c +++ b/gnu/usr.bin/patch/patch.c @@ -155,6 +155,11 @@ char **argv; for (i = 0; i<MAXFILEC; i++) filearg[i] = Nullch; + buf_size = INITLINELEN; + buf = malloc((MEM)(buf_size)); + if (buf == Nullch) + fatal1("out of memory\n"); + myuid = getuid(); index_first = getenv ("PATCH_INDEX_FIRST") != 0; |