diff options
Diffstat (limited to 'mac.c')
-rw-r--r-- | mac.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |