diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-05-02 22:01:39 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-09 20:58:12 +0000 |
commit | 7e1de34b1219abb32a91175fe5f463c0bddd6d25 (patch) | |
tree | d304ab9aca6a7e6f4c4aea64e61d99709850146e | |
parent | d77aaea8944ac7be09a0f9032ddabceb6e5f8c39 (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
-rw-r--r-- | src/renderer/tr_model.c | 4 |
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 ); |