changeset: 30:a82ddbdba40d
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Feb 15 17:13:07 2007 -0500
summary: Separate xwrite args with spaces
diff -r ad48d026911d -r a82ddbdba40d ixpc.c
--- a/ixpc.c Thu Feb 15 16:59:51 2007 -0500
+++ b/ixpc.c Thu Feb 15 17:13:07 2007 -0500
@@ -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:
Received on Thu Feb 15 2007 - 23:14:36 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:21 UTC