From 054f4b7bd1ecd4f70a52ef4e8d571b682ac4f368 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 13 May 2003 06:20:08 +0000 Subject: [PATCH] oopsie, that was an ill-advised change :P --- libs/console/filelist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/console/filelist.c b/libs/console/filelist.c index fb0de3657..8086da0fe 100644 --- a/libs/console/filelist.c +++ b/libs/console/filelist.c @@ -250,7 +250,7 @@ Con_Skyboxlist_f (void) for (i = 0; i < skyboxlist->count; i++) { if (strlen(skyboxlist->list[i]) > strlen(sb_endings[0]) && strcmp(skyboxlist->list[i] + strlen(skyboxlist->list[i]) - strlen(sb_endings[0]), sb_endings[0]) == 0) { strncpy(basename, skyboxlist->list[i], sizeof(basename)); - basename[sizeof(basename) - 1] = 0; + basename[strlen(skyboxlist->list[i]) - strlen(sb_endings[0])] = 0; c = 0; for (j = 1; sb_endings[j]; j++) { b = 0;