commit 658479b48afa384c0d025a1e6213329baad1485d
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Feb 17 16:10:37 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Feb 17 16:10:37 2018 +0200
Fix format string problem in M_StringDuplicate
---
src/m_misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/m_misc.c b/src/m_misc.c
index 7e69da8f..e82fffd6 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -384,7 +384,7 @@ char *M_StringDuplicate(const char *orig)
if (result == NULL)
{
- I_Error("Failed to duplicate string (length %i)\n",
+ I_Error("Failed to duplicate string (length %" PRIuPTR ")\n",
strlen(orig));
}