mirror of
https://github.com/0intro/wmii
synced 2024-11-29 00:53:09 +03:00
Don't write extra NUL on xwrite.
This commit is contained in:
parent
a1e41d15c1
commit
938b128ef5
@ -149,7 +149,7 @@ xawrite(int argc, char *argv[]) {
|
|||||||
|
|
||||||
nbuf = 0;
|
nbuf = 0;
|
||||||
for(i=0; i < argc; i++)
|
for(i=0; i < argc; i++)
|
||||||
nbuf += strlen(argv[i]) + 1;
|
nbuf += strlen(argv[i]) + (i > 0);
|
||||||
buf = emalloc(nbuf);
|
buf = emalloc(nbuf);
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
while(argc) {
|
while(argc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user