summaryrefslogtreecommitdiff
path: root/blasms.c
diff options
context:
space:
mode:
Diffstat (limited to 'blasms.c')
-rw-r--r--blasms.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/blasms.c b/blasms.c
index 3d89468..e0c1020 100644
--- a/blasms.c
+++ b/blasms.c
@@ -221,6 +221,10 @@ int main(int argc, char *argv[]) {
//printf("Default command: %s\n", defaultcmd);
continue;
}
+ /* If the SMS command doesn't end here, continue */
+ if (sms[offset] != ' ') {
+ continue;
+ }
strxfrm(smscommand, sms, offset);
smscommand[offset] = '\0';
//printf("SMS command: %s\n", smscommand);