From f50520dffe561fb02e8a9ba7edd140a5b1145bb5 Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 6 Sep 2009 19:07:18 +0000 Subject: [PATCH] Use xsprintf instead of sprintf. git-svn-id: svn://svn.cc65.org/cc65/trunk@4124 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/anonname.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/cc65/anonname.c b/src/cc65/anonname.c index 499532f93..27b498d2a 100644 --- a/src/cc65/anonname.c +++ b/src/cc65/anonname.c @@ -1,15 +1,15 @@ /*****************************************************************************/ /* */ -/* anonname.c */ +/* anonname.c */ /* */ /* Create names for anonymous variables/types */ /* */ /* */ /* */ -/* (C) 2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@cc65.org */ +/* (C) 2000-2009, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -36,8 +36,12 @@ #include #include +/* common */ +#include "xsprintf.h" + /* cc65 */ #include "anonname.h" +#include "ident.h" @@ -63,7 +67,7 @@ char* AnonName (char* Buf, const char* Spec) */ { static unsigned ACount = 0; - sprintf (Buf, "%s-%s-%04X", AnonTag, Spec, ++ACount); + xsprintf (Buf, IDENTSIZE, "%s-%s-%04X", AnonTag, Spec, ++ACount); return Buf; } -- 2.39.5