mausezahn: fix strtok() segfault if s or m are missing
commit15f78c073276ad49b3541215b2a302b1a32c9f2b
authorDaniel Roberson <daniel@planethacker.net>
Thu, 19 Apr 2018 04:52:01 +0000 (18 21:52 -0700)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 19 Apr 2018 14:13:56 +0000 (19 16:13 +0200)
tree3e2175cb2b44dd79d017ecce4c1e307032ace840
parent65ba0860baa53670e79211edbd047a8080ec1f8a
mausezahn: fix strtok() segfault if s or m are missing

The -d flag will result in a segmentation fault if 'm' or 's' are
specified without a numeric value.

Example: mausezahn -d m ### Results in a crash

Signed-off-by: Daniel Roberson <daniel@planethacker.net>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
staging/mausezahn.c