summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-10-30 23:39:40 +0100
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-10-30 23:39:40 +0100
commita5a07d79a552f34b13880c9a1f9eebbdabe7dd2e (patch)
treed87b64d15f2c9f9183ae089aa125e3d6719eb3ce
parent3dc600edda0023d218a903c16269bd2bd6818e25 (diff)
Fix %M macro to make it work with commands not ending in itself
-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;
}