[netfilter-cvslog] r4404 - trunk/nfsim/core
rusty at netfilter.org
rusty at netfilter.org
Mon Oct 31 07:14:50 CET 2005
Author: rusty at netfilter.org
Date: 2005-10-31 07:14:47 +0100 (Mon, 31 Oct 2005)
New Revision: 4404
Modified:
trunk/nfsim/core/tui.c
Log:
Backquote fix, sitting in my dir for a while...
Modified: trunk/nfsim/core/tui.c
===================================================================
--- trunk/nfsim/core/tui.c 2005-10-31 04:25:58 UTC (rev 4403)
+++ trunk/nfsim/core/tui.c 2005-10-31 06:14:47 UTC (rev 4404)
@@ -273,7 +273,7 @@
return dest;
}
-/* Process `command`. */
+/* Process `command`: update off to point to tail backquote */
static char *backquote(char *line, unsigned int *off)
{
char *end, *cmdstr, *str;
@@ -295,8 +295,8 @@
script_fail("failed to popen '%s': %s\n",
cmdstr, strerror(errno));
- /* Jump over tail backquote. */
- *off += len + 1;
+ /* Jump to backquote. */
+ *off += len;
/* Read command output. */
used = 0;
More information about the netfilter-cvslog
mailing list