changeset 31:358785799844

loadtool scripting: cosmetic buglet
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 07:25:39 +0000
parents af6d763badfb
children 9a77b3395747
files loadtools/ltscript.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/ltscript.c	Sat May 04 07:23:01 2013 +0000
+++ b/loadtools/ltscript.c	Sat May 04 07:25:39 2013 +0000
@@ -38,6 +38,7 @@
 			fclose(f);
 			return(-1);
 		}
+		*cp = '\0';
 		retval = loadtool_dispatch_cmd(linebuf, 1);
 		if (retval)
 			break;