mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Replace a LOT of sprintf with snprintf, and a few strcpy with truncate_cpy
This commit is contained in:
1 parent
c02634c161
commit
6945deec01
39 files changed
+170
-193
No files matched your search
@@ -242,7 +242,7 @@ std::string StringFromFormat(const char* format, ...)
|
||||
std::string StringFromInt(int value)
|
||||
{
|
||||
char temp[16];
|
||||
sprintf(temp, "%i", value);
|
||||
snprintf(temp, sizeof(temp), "%d", value);
|
||||
return temp;
|
||||
}
|
||||
|
||||
@@ -367,4 +367,4 @@ std::string UnescapeMenuString(const char *input, char *shortcutChar) {
|
||||
}
|
||||
}
|
||||
return output;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user