summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-10-29 21:52:55 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-10-29 21:52:55 +0100
commitaac8fd309c0749bc7d6c12f0b5342ad9aa24b750 (patch)
tree090f2ba63485d6734b436273335818bccd414231
parentb857cfb83f2b3eaae8854a9f641fbcb12be36d1f (diff)
Modify command length limit from 8 to 10
-rw-r--r--blasms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/blasms.c b/blasms.c
index 3c360e0..3d89468 100644
--- a/blasms.c
+++ b/blasms.c
@@ -126,7 +126,7 @@ int main(int argc, char *argv[]) {
/* SMS content */
char sms[500];
/* SMS command */
- char smscommand[9];
+ char smscommand[11];
/* Command to execute */
char systemcmd[1000];
/* Default command to execute */
@@ -210,8 +210,8 @@ int main(int argc, char *argv[]) {
//printf("%s\n", line);
if ((strchrp = strchr(line, ' ')) != NULL) {
offset = strchrp - line;
- if (offset > 8) {
- printf("Error, command longer than 8 characters in blasms.conf.\n");
+ if (offset > 10) {
+ printf("Error, command longer than 10 characters in blasms.conf.\n");
return 1;
}
strxfrm(configcmd, line, offset);