summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blasms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/blasms.c b/blasms.c
index f045aab..b32d59d 100644
--- a/blasms.c
+++ b/blasms.c
@@ -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;
}
}