[Change] Forgot a sprintf=>snprintf a while back.

This commit is contained in:
Allanis 2014-07-20 20:54:38 +01:00
parent d3408e38b0
commit 405cf65b83

View File

@ -110,7 +110,7 @@ static int spfx_base_load(char* name, int ttl, int anim, char* gfx, int sx, int
cur->name = strdup(name); cur->name = strdup(name);
cur->anim = (double)anim / 1000.; cur->anim = (double)anim / 1000.;
cur->ttl = (double)ttl / 1000.; cur->ttl = (double)ttl / 1000.;
sprintf(buf, SPFX_GFX"%s", gfx); snprintf(buf, PATH_MAX, SPFX_GFX"%s", gfx);
cur->gfx = gl_newSprite(buf, sx, sy, 0); cur->gfx = gl_newSprite(buf, sx, sy, 0);
return 0; return 0;