diff options
-rw-r--r-- | blasms.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -178,6 +178,7 @@ int main(int argc, char *argv[]) { } else { //printf("Using default command.\n"); strcpy(systemcmd, defaultcmd); + offset = -1; } //printf("Command: %s\n", systemcmd); @@ -196,7 +197,7 @@ int main(int argc, char *argv[]) { replacestr(systemcmd, i, argv[2]); break; case 's': - replacestr(systemcmd, i, sms); + replacestr(systemcmd, i, sms + offset + 1); break; } } |