From ed4e47864fc0aa03b433babb3b560f3cbe8b9b93 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 27 Oct 2010 20:31:13 +0100 Subject: Stop SMS commands being sent as part of the final SMS --- blasms.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- cgit v1.2.3