diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-27 20:31:13 +0100 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-27 20:31:13 +0100 |
commit | ed4e47864fc0aa03b433babb3b560f3cbe8b9b93 (patch) | |
tree | 3eed6cf7b2d222a3b4c8c2ad49137c9eb20fd1b7 | |
parent | 9c392e5fdd673b9b310087a8f9b1e33717067002 (diff) |
Stop SMS commands being sent as part of the final SMS
-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; } } |