summaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-05-02 22:01:39 +0000
committerTim Angus <tim@ngus.net>2013-01-09 20:58:12 +0000
commit7e1de34b1219abb32a91175fe5f463c0bddd6d25 (patch)
treed304ab9aca6a7e6f4c4aea64e61d99709850146e /src/renderer
parentd77aaea8944ac7be09a0f9032ddabceb6e5f8c39 (diff)
<ZTurtleMan> Thilo: altName (created using va) does not point to model filename in developer-only printf as va is used to load images before the printf. http://pastebin.com/1KCjz6Ct
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/tr_model.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer/tr_model.c b/src/renderer/tr_model.c
index 7f61cb08..af42db3a 100644
--- a/src/renderer/tr_model.c
+++ b/src/renderer/tr_model.c
@@ -271,7 +271,7 @@ qhandle_t RE_RegisterModel( const char *name ) {
int i;
char localName[ MAX_QPATH ];
const char *ext;
- char *altName;
+ char altName[ MAX_QPATH ];
if ( !name || !name[0] ) {
ri.Printf( PRINT_ALL, "RE_RegisterModel: NULL name\n" );
@@ -359,7 +359,7 @@ qhandle_t RE_RegisterModel( const char *name ) {
if (i == orgLoader)
continue;
- altName = va( "%s.%s", localName, modelLoaders[ i ].ext );
+ Com_sprintf( altName, sizeof (altName), "%s.%s", localName, modelLoaders[ i ].ext );
// Load
hModel = modelLoaders[ i ].ModelLoader( altName, mod );