dtcreate: Fix some memory management issues
authorFrederic Koehler <f.koehler427@gmail.com>
Fri, 17 Aug 2012 02:34:26 +0000 (22:34 -0400)
committerJon Trulson <jon@radscan.com>
Sat, 18 Aug 2012 01:03:01 +0000 (19:03 -0600)
commit7d2fee276933eb5185565574cfbb9fa53e7d1f09
tree321f33a86a9671d96eaa7453deac56b7c9fa237a
parentc8a5b9671f233ce36a0ae475f60be64893a1e129
dtcreate: Fix some memory management issues

ProcessExecString thought it was returning an array of size 3; however
in C arrays are second-class and there is no direct way to return an
array like this; GCC warning triggered because it was actually
just returning a pointer to local storage. Fixed using malloc.

Also fix some obviously wrong usages of sizeof, although they were
relatively harmless. A little other warning quieting using 0 instead of
NULL.
cde/programs/dtcreate/parser.c