diff options
author | Dan Fandrich | 2010-09-07 23:38:28 -0700 |
---|---|---|
committer | Denys Vlasenko | 2010-09-09 11:48:02 +0200 |
commit | 77d48726917e6493a8a077be93bb07b22fd2c209 (patch) | |
tree | 71b1d17d7a8a91192d8d0cd3fe0a3dc1028b4a6a /coreutils/ls.c | |
parent | 95d48f259807c408de731f580bd48cf20dec724a (diff) | |
download | busybox-77d48726917e6493a8a077be93bb07b22fd2c209.zip busybox-77d48726917e6493a8a077be93bb07b22fd2c209.tar.gz |
Avoid side effects in putc(), which may be implemented as a macro
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index cbfcfc7..e69f1af 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -573,7 +573,8 @@ static unsigned print_name(const char *name) putchar('\\'); len++; } - putchar(*name++); + putchar(*name); + name++; } putchar('"'); return len; |