* regtool.cc (main): Avoid a SEGV when nothing follows -K.
This commit is contained in:
parent
d61925786a
commit
2391eea57e
|
@ -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>
|
2005-02-26 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* kill (getsig): Avoid buffer overflow when generating a signal name.
|
* kill (getsig): Avoid buffer overflow when generating a signal name.
|
||||||
|
|
|
@ -674,6 +674,9 @@ main (int argc, char **_argv)
|
||||||
print_version ();
|
print_version ();
|
||||||
exit (0);
|
exit (0);
|
||||||
case 'K':
|
case 'K':
|
||||||
|
if (!optarg)
|
||||||
|
usage ();
|
||||||
|
else
|
||||||
key_sep = *optarg;
|
key_sep = *optarg;
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
|
|
Loading…
Reference in New Issue