diff options
author | Denys Vlasenko | 2009-09-06 12:47:55 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-09-06 12:47:55 +0200 |
commit | 043b1e5d997d9b582a5aee37bd56e2e4f29be6e4 (patch) | |
tree | bab07bc427f178857896a8bf252c61ea1a5c67a2 /coreutils/cut.c | |
parent | 5370bfb123266ab5716f321e43d3f8f6da7d7143 (diff) | |
download | busybox-043b1e5d997d9b582a5aee37bd56e2e4f29be6e4.zip busybox-043b1e5d997d9b582a5aee37bd56e2e4f29be6e4.tar.gz |
more C standard compat fixes from Dan Fandrich
function old new delta
docolon 207 204 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/cut.c')
-rw-r--r-- | coreutils/cut.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index 9cc22be..240ce4b 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c @@ -111,7 +111,10 @@ static void cut_file(FILE *file, char delim, const struct cut_list *cut_lists, u int ndelim = -1; /* zero-based / one-based problem */ int nfields_printed = 0; char *field = NULL; - const char delimiter[2] = { delim, 0 }; + char delimiter[2]; + + delimiter[0] = delim; + delimiter[1] = 0; /* does this line contain any delimiters? */ if (strchr(line, delim) == NULL) { |