summaryrefslogtreecommitdiffstats
path: root/mac.c
diff options
context:
space:
mode:
Diffstat (limited to 'mac.c')
-rw-r--r--mac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mac.c b/mac.c
index 210deef..eec4bcc 100644
--- a/mac.c
+++ b/mac.c
@@ -552,6 +552,8 @@ int main(int argc,char *argv[])
for(i=argc-1;i>0;i--)
#ifdef LOCAL_CONTROL
if(i<argc-1 && !strcmp(argv[i],"-toggleviewonly")) {
+ if(strlen(argv[i+1])>1022)
+ argv[i+1][1022]=0;
sprintf(message,"t%s",argv[i+1]);
send_message(&single_instance,message);
exit(0);
@@ -562,6 +564,8 @@ int main(int argc,char *argv[])
} else
#ifdef BACKCHANNEL
if(i<argc-1 && !strcmp(argv[i],"-backchannel")) {
+ if(strlen(argv[i+1])>1022)
+ argv[i+1][1022]=0;
sprintf(message,"b%s",argv[i+1]);
send_message(&single_instance,message);
exit(0);