summaryrefslogtreecommitdiff
path: root/blasms.c
diff options
context:
space:
mode:
Diffstat (limited to 'blasms.c')
-rw-r--r--blasms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blasms.c b/blasms.c
index d9e10dc..7aed511 100644
--- a/blasms.c
+++ b/blasms.c
@@ -329,8 +329,8 @@ int main(int argc, char *argv[]) {
}
replacestr(systemcmd, i, 2, telnum);
- replacestr(systemcmd, strlen(systemcmd) - 1, 0, ":");
- replacestr(systemcmd, strlen(systemcmd) - 1, 0, line + telnumlen);
+ replacestr(systemcmd, i + strlen(telnum), 0, ":");
+ replacestr(systemcmd, i + strlen(telnum) + 1, 0, line + telnumlen);
break;
}