Wireshark mailing list archives
Re: [Wireshark-commits] rev 38349: /trunk/ /trunk/: capture_sync.c
From: Guy Harris <guy () alum mit edu>
Date: Fri, 5 Aug 2011 00:28:51 -0700
On Aug 5, 2011, at 12:10 AM, tuexen () wireshark org wrote:
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=38349 User: tuexen Date: 2011/08/05 12:10 AM Log: Generate the capure sync pipe correctly. Fix obtained from Irene Ruengeler. Directory: /trunk/ Changes Path Action +37 -15 capture_sync.c Modified
...
@@ -133,8 +134,8 @@ /* Stuff the pointer into the penultimate element of the array, which is the one at the index specified by "*argc". */ - args[*argc] = arg; - + temparg = g_strdup_printf("%s", arg); + args[*argc] = temparg; /* Now bump the count. */ (*argc)++;
Would not args[*argc] = g_strdup(arg); suffice? (Presumably the problem was that something was modifying "arg" after the call to sync_pipe_add_arg() but before the spawning of the child process.) ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Re: [Wireshark-commits] rev 38349: /trunk/ /trunk/: capture_sync.c Guy Harris (Aug 05)
- Re: [Wireshark-commits] rev 38349: /trunk/ /trunk/: capture_sync.c Michael Tuexen (Aug 05)