commit | 4c95956627e83853999c2abd3ce3bbcbc89f243d | [log] [tgz] |
---|---|---|
author | Syed Obaid Amin <obaidasyed@gmail.com> | Fri Dec 21 16:43:21 2012 -0600 |
committer | Syed Obaid Amin <obaidasyed@gmail.com> | Fri Dec 21 16:43:21 2012 -0600 |
tree | 548594f362839140c12f462f3de66bbe5570eaff | |
parent | 7a176c6234cfe13cbf3a882bdde88fb88db50e0b [diff] [blame] |
fixed many memset calls. arguments were not in right order
diff --git a/nlsr-sync-0.0/nlsrc.c b/nlsr-sync-0.0/nlsrc.c index 8943973..54f1538 100755 --- a/nlsr-sync-0.0/nlsrc.c +++ b/nlsr-sync-0.0/nlsrc.c
@@ -69,7 +69,7 @@ for(i=5;i<argc;i++) command_len+=(strlen(argv[i])+1); char *command=malloc(command_len); - memset(command,command_len+1,0); + memset(command, 0, command_len); for(i=5;i<argc;i++) { memcpy(command+strlen(command),argv[i],strlen(argv[i]));