Don't write extra NUL on xwrite.

This commit is contained in:
Kris Maglione 2008-05-31 12:00:39 -04:00
parent a1e41d15c1
commit 938b128ef5

View File

@ -149,7 +149,7 @@ xawrite(int argc, char *argv[]) {
nbuf = 0;
for(i=0; i < argc; i++)
nbuf += strlen(argv[i]) + 1;
nbuf += strlen(argv[i]) + (i > 0);
buf = emalloc(nbuf);
buf[0] = '\0';
while(argc) {