diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-30 23:39:40 +0100 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-30 23:39:40 +0100 |
commit | a5a07d79a552f34b13880c9a1f9eebbdabe7dd2e (patch) | |
tree | d87b64d15f2c9f9183ae089aa125e3d6719eb3ce /blasms.c | |
parent | 3dc600edda0023d218a903c16269bd2bd6818e25 (diff) |
Fix %M macro to make it work with commands not ending in itself
Diffstat (limited to 'blasms.c')
-rw-r--r-- | blasms.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |