showlog: Don't crash on illegal arguments shorter than 11 chars
commit821119888530df31daa7a567c6ba14a1ca7836c7
authorAndreas Ericsson <ae@op5.se>
Tue, 23 Mar 2010 09:41:48 +0000 (23 10:41 +0100)
committerAndreas Ericsson <ae@op5.se>
Tue, 23 Mar 2010 09:42:32 +0000 (23 10:42 +0100)
tree6a771b2f8410790cf53f1395c5c266ac420fd610
parentdcbc2ac6e81129adbd76194883f1805421350916
showlog: Don't crash on illegal arguments shorter than 11 chars

We do this by checking the length of the argument before parsing
backwards from the end of the string.

Signed-off-by: Andreas Ericsson <ae@op5.se>
showlog.c