summaryrefslogtreecommitdiff
path: root/blasms.c
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-10-27 20:31:13 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-10-27 20:31:13 +0100
commited4e47864fc0aa03b433babb3b560f3cbe8b9b93 (patch)
tree3eed6cf7b2d222a3b4c8c2ad49137c9eb20fd1b7 /blasms.c
parent9c392e5fdd673b9b310087a8f9b1e33717067002 (diff)
Stop SMS commands being sent as part of the final SMS
Diffstat (limited to 'blasms.c')
-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;
}
}