Check for NULL pointer when stripping extension
authorBill Lash <william.lash@gmail.com>
Tue, 18 Dec 2018 01:52:42 +0000 (19:52 -0600)
committerBill Lash <william.lash@gmail.com>
Tue, 18 Dec 2018 01:52:42 +0000 (19:52 -0600)
commit244804b07248cae5c00f9a494c8c8b1e8f5df3b5
treec1e714e9366ba38a3e5e21a3ae19af167436f796
parent6d161fb8eedb1257a6c244e6a37451bebab6ead4
Check for NULL pointer when stripping extension

When stripping the story file extension, verify that the strrchr()
found the ".".  This ensures that if the file had no extension, ther
will be no SEGFAULT.
src/curses/ux_init.c
src/dumb/dumb_init.c