diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-09 12:24:19 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-09 12:24:19 +0000 |
commit | 5dff2613d78e3a97fb2f0173b729e225278981ab (patch) | |
tree | 98f3e605a5b17bffc9e1f087907bf15049d6e717 /coreutils/tr.c | |
parent | 6d51db74a9a69bd95cd1130fa8149dda21fb7531 (diff) | |
download | busybox-w32-5dff2613d78e3a97fb2f0173b729e225278981ab.tar.gz busybox-w32-5dff2613d78e3a97fb2f0173b729e225278981ab.tar.bz2 busybox-w32-5dff2613d78e3a97fb2f0173b729e225278981ab.zip |
using [xa]sprintf for string concatenation is neat and saves
~100 bytes according to bloatcheck. Also this fixes bug in rpm
git-svn-id: svn://busybox.net/trunk/busybox@16081 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r-- | coreutils/tr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c index 6eb86750d..f2c9065d1 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -128,7 +128,7 @@ static unsigned int expand(const char *arg, char *buffer) | |||
128 | for (i = 'A'; i <= 'Z'; i++) | 128 | for (i = 'A'; i <= 'Z'; i++) |
129 | *buffer++ = i; | 129 | *buffer++ = i; |
130 | else if (strncmp(arg, "space", 5) == 0) { | 130 | else if (strncmp(arg, "space", 5) == 0) { |
131 | const char s[] = "\t\n\v\f\r "; | 131 | const char s[] = "\t\n\v\f\r "; |
132 | strcat((char*)buffer, s); | 132 | strcat((char*)buffer, s); |
133 | buffer += sizeof(s) - 1; | 133 | buffer += sizeof(s) - 1; |
134 | } | 134 | } |