ustctl: Fix memory allocation problem with compatibility args
authorJason Wessel <jason.wessel@windriver.com>
Thu, 3 Mar 2011 02:21:07 +0000 (21:21 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 3 Mar 2011 02:21:07 +0000 (21:21 -0500)
commit68d96813ccbb41602f92b45e8a5f61dea7525c35
treed7e3f7609c4ba2042667a211b9484d847ed8363c
parent3b66c3511f7e1819158f10a600856ecfb2b9694e
ustctl: Fix memory allocation problem with compatibility args

The parenthesis were missing to make the malloc math have the correct
precedence.  The addition needs to occur before the multiplication.
The result is the same but for clarity also change change char ** to
char * because we are allocating an array of char pointers.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ustctl/ustctl.c
This page took 0.044859 seconds and 4 git commands to generate.