From 85180c648821d3d4b9ac24f30b16be95ee88f1ec Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Mon, 12 May 2003 22:45:10 +0000 Subject: [PATCH] use briefings with no extension --- ChangeLog | 4 ++++ NEWS | 3 +++ main/titles.c | 6 +++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b72a276..1fb606ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-05-12 Bradley Bell + + * main/titles.c: use briefings with no extension + 0.2.3: 2003-04-30 Bradley Bell diff --git a/NEWS b/NEWS index 78d62ad0..7cab2a01 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +--- Version 0.2.4 --- +- Fix crash on some mission briefings + --- Version 0.2.3 --- - Fix linking bug on OS X diff --git a/main/titles.c b/main/titles.c index 60e1c5a2..d27eff7f 100644 --- a/main/titles.c +++ b/main/titles.c @@ -1,4 +1,4 @@ -/* $Id: titles.c,v 1.24 2003-03-01 12:50:45 btb Exp $ */ +/* $Id: titles.c,v 1.25 2003-05-12 22:45:10 btb Exp $ */ /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO @@ -1207,8 +1207,8 @@ int load_screen_text(char *filename, char **buf) char nfilename[30], *ptr; strcpy(nfilename, filename); - ptr = strrchr(nfilename, '.'); - *ptr = '\0'; + if ((ptr = strrchr(nfilename, '.'))) + *ptr = '\0'; strcat(nfilename, ".txb"); if ((ifile = cfopen(nfilename, "rb")) == NULL) { mprintf ((0,"can't open %s!\n",nfilename)); -- 2.39.2