From 405cf65b832ab70483bc4b84946df5349488a428 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 20 Jul 2014 20:54:38 +0100 Subject: [PATCH] [Change] Forgot a sprintf=>snprintf a while back. --- src/spfx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spfx.c b/src/spfx.c index bc1cfe9..6f0a492 100644 --- a/src/spfx.c +++ b/src/spfx.c @@ -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->anim = (double)anim / 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); return 0;