mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Fix typo in previous commit
This commit is contained in:
parent
d37f5b3052
commit
6dd59bf51b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user