sconfig: improve argument parsing
commit6fa6843a8d3ba9576a331c57818a5ecbe08a0f45
authorPatrick Georgi <patrick@georgi-clan.de>
Sun, 3 Aug 2014 13:27:35 +0000 (3 15:27 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Mon, 4 Aug 2014 18:57:12 +0000 (4 20:57 +0200)
tree4e269287cc9ee25a1a94582d97b69775ae11f54a
parent80fd01d2cc44a7a4077b5df25d5d09917e5ae04a
sconfig: improve argument parsing

Running sconfig with four arguments where the third
does not match /-./ made sconfig use uninitialized
memory to build the output filename.

Change-Id: If4a147ff23771ca9b6a913605af60249be1ca3d0
Found-By: Coverity Scan
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6483
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
util/sconfig/main.c