diff options
-rw-r--r-- | coreutils/cut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index 0d95ff84f..3c9fdbda3 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -50,7 +50,7 @@ static void cut_file(FILE *file, char delim, const struct cut_list *cut_lists, u | |||
50 | 50 | ||
51 | /* set up a list so we can keep track of what's been printed */ | 51 | /* set up a list so we can keep track of what's been printed */ |
52 | int linelen = strlen(line); | 52 | int linelen = strlen(line); |
53 | char *printed = xzalloc(linelen * sizeof(char)); | 53 | char *printed = xzalloc(linelen + 1); |
54 | char *orig_line = line; | 54 | char *orig_line = line; |
55 | unsigned cl_pos = 0; | 55 | unsigned cl_pos = 0; |
56 | int spos; | 56 | int spos; |