using [xa]sprintf for string concatenation is neat and saves

~100 bytes according to bloatcheck. Also this fixes bug in rpm
This commit is contained in:
Denis Vlasenko
2006-09-09 12:24:19 +00:00
parent 3526a1320a
commit 9cac521f07
6 changed files with 10 additions and 13 deletions

View File

@@ -138,7 +138,7 @@ int logger_main(int argc, char **argv)
len += strlen(*argv);
message = xrealloc(message, len);
if(!i)
message[0] = 0;
message[0] = '\0';
else
strcat(message, " ");
strcat(message, *argv);