From 492c2da6f247c2055983ff901546d0980cfdb54b Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Mon, 25 Aug 2008 01:37:57 +0000 Subject: [PATCH] undid %02d in formatting version string --- source/Applewin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Applewin.cpp b/source/Applewin.cpp index 278d258e..8122397a 100644 --- a/source/Applewin.cpp +++ b/source/Applewin.cpp @@ -743,7 +743,7 @@ int APIENTRY WinMain (HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int) unsigned long fix = pFixedFileInfo->dwFileVersionLS >> 16; unsigned long fix_minor = pFixedFileInfo->dwFileVersionLS & 0xffff; - sprintf(VERSIONSTRING, "%02d.%02d.%02d.%02d", major, minor, fix, fix_minor); // potential buffer overflow + sprintf(VERSIONSTRING, "%d.%d.%d.%d", major, minor, fix, fix_minor); // potential buffer overflow } }