Fix typo in previous commit

This commit is contained in:
athile 2010-06-14 12:31:13 -07:00
parent d37f5b3052
commit 6dd59bf51b

View file

@ -183,7 +183,7 @@ static String getUniqueName(const String &input)
static int addon = 0;
static char buf[8];
sprintf(buf, "_%d", addon++);
snprintf(buf, 8, "_%d", addon++);
// Don't overflow the buffer
if(addon > 999999) addon = 0;