freebsd-ports/sysutils/scanmem/files/patch-commands.c
Alexey Dokuchaev 8ed699c6a1 Add quick and dirty port of scanmem, a simple interactive debugging utility
for Linux, used to locate the address of a variable in an executing process.

WWW: http://code.google.com/p/scanmem/
2014-08-28 10:40:16 +00:00

11 lines
333 B
C

--- commands.c.orig 2010-01-19 07:37:07 UTC
+++ commands.c
@@ -104,7 +104,7 @@ bool execcommand(globals_t * vars, const
np = commands->head;
- str = tok = strdupa(commandline);
+ str = tok = strdup(commandline);
/* tokenize command line into an argument vector */
for (argc = 0; tok; argc++, str = NULL) {