* regtool.cc (main): Avoid a SEGV when nothing follows -K.

This commit is contained in:
Christopher Faylor 2005-02-27 06:10:58 +00:00
parent d61925786a
commit 2391eea57e
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-02-27 Christopher Faylor <cgf@timesys.com>
* regtool.cc (main): Avoid a SEGV when nothing follows -K.
2005-02-26 Christopher Faylor <cgf@timesys.com>
* kill (getsig): Avoid buffer overflow when generating a signal name.

View File

@ -674,7 +674,10 @@ main (int argc, char **_argv)
print_version ();
exit (0);
case 'K':
key_sep = *optarg;
if (!optarg)
usage ();
else
key_sep = *optarg;
break;
default :
usage ();