From: David Griffith Date: Thu, 6 Sep 2012 19:39:31 +0000 (-0700) Subject: 64-bit problem fixed by Bill Lash X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=1c91d216d478fd7a3db583c33a3617853bbbd526;p=liskon_frotz.git 64-bit problem fixed by Bill Lash --- diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c index ea30cd4..67adf7a 100644 --- a/src/curses/ux_init.c +++ b/src/curses/ux_init.c @@ -31,6 +31,7 @@ #include #include #include +#include /* We will use our own private getopt functions. */ #include "getopt.h" @@ -280,7 +281,7 @@ void os_process_arguments (int argc, char *argv[]) /* Save the story file name */ f_setup.story_file = strdup(argv[optind]); - f_setup.story_name = strdup((char *)basename(argv[optind])); + f_setup.story_name = strdup(basename(argv[optind])); /* Now strip off the extension. */ p = rindex(f_setup.story_name, '.'); @@ -295,7 +296,7 @@ void os_process_arguments (int argc, char *argv[]) } } - f_setup.story_path = strdup((char *)dirname(argv[optind])); + f_setup.story_path = strdup(dirname(argv[optind])); /* Create nice default file names */ @@ -1002,8 +1003,8 @@ int ux_init_blorb(void) * is contained in the blorb file. */ - if (strncmp((char *)basename(f_setup.story_file), - (char *)basename(u_setup.blorb_file), 55) == 0) { + if (strncmp(basename(f_setup.story_file), + basename(u_setup.blorb_file), 55) == 0) { if ((blorbfile = fopen(u_setup.blorb_file, "rb")) == NULL) return bb_err_Read; blorb_err = bb_create_map(blorbfile, &blorb_map);