2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-14 10:37:41 -04:00

Various string/printf fixes.

This commit is contained in:
Darryl Pogue
2011-08-06 14:54:01 -07:00
parent 24ab78b3f3
commit 8a6117358b
4 changed files with 6 additions and 4 deletions

View File

@ -274,7 +274,7 @@ PyObject *EnumValue_oct(EnumValue *v)
if (x == 0)
strcpy(buf, "0");
else
_snprintf(buf, sizeof(buf), "0%lo", x);
snprintf(buf, sizeof(buf), "0%lo", x);
return PyString_FromString(buf);
}
@ -287,7 +287,7 @@ PyObject *EnumValue_hex(EnumValue *v)
Py_INCREF(Py_NotImplemented);
return Py_NotImplemented;
}
_snprintf(buf, sizeof(buf), "0x%lx", x);
snprintf(buf, sizeof(buf), "0x%lx", x);
return PyString_FromString(buf);
}

View File

@ -234,7 +234,7 @@ class pfColorListElement : public pfGUIListText
{
size_t length = wcslen( fString1 ) + wcslen( fString2 ) + 3;
thestring = TRACKED_NEW wchar_t[ length ];
swprintf( thestring, length, L"%s %s", fString1, fString2 );
snwprintf( thestring, length, L"%s %s", fString1, fString2 );
wemade_string = true;
}
else if (fString1)