mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
Use xsprintf instead of sprintf.
git-svn-id: svn://svn.cc65.org/cc65/trunk@4124 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
94a2223443
commit
f50520dffe
@ -6,9 +6,9 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2000 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* (C) 2000-2009, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
@ -36,8 +36,12 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user