From 854c7b4bb9847d5cb4223dd95574cdec8a012bfe Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 27 Feb 2013 21:13:12 +1030 Subject: [PATCH] light: trivial variable rename Signed-off-by: Kevin Shanahan --- light/entities.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/light/entities.c b/light/entities.c index 942cb30d..2b961562 100644 --- a/light/entities.c +++ b/light/entities.c @@ -102,11 +102,10 @@ MatchTargets(void) /* set the style on the source ent for switchable lights */ if (entities[j].style) { - char s[16]; - + char style[16]; entities[i].style = entities[j].style; - sprintf(s, "%i", entities[i].style); - SetKeyValue(&entities[i], "style", s); + snprintf(style, sizeof(style), "%i", entities[i].style); + SetKeyValue(&entities[i], "style", style); } } }