commit 1e3ff2c08fdf5d084e62527e78ecd6f6e36b5863
parent 829fd062893b7930c33b32430be511fa3cdf5506
Author: Kris Maglione <jg@suckless.org>
Date: Thu, 15 Feb 2007 17:13:07 -0500
Separate xwrite args with spaces
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ixpc.c b/ixpc.c
@@ -279,9 +279,12 @@ main(int argc, char *argv[]) {
else if(!strncmp(cmd, "write", 6))
ret = xwrite(file, IXP_OWRITE);
else if(!strncmp(cmd, "xwrite", 7)) {
- while(i < argc)
+ ixp_strlcat(buffer, argv[i++], 1023);
+ while(i < argc) {
+ ixp_strlcat(buffer, " ", 1024);
if(ixp_strlcat(buffer, argv[i++], 1024) > 1023)
break;
+ }
xawrite(file, IXP_OWRITE);
}else {
Usage: