From f8f79d933462e39b1039d0644dfc7697850501c7 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 7 Feb 2013 17:56:48 +0400 Subject: Fixing wrong sprintf() calls. modified: storage/connect/filamap.cpp storage/connect/filamdbf.cpp storage/connect/filamfix.cpp storage/connect/filamtxt.cpp storage/connect/filamvct.cpp storage/connect/ha_connect.cc storage/connect/osutil.c storage/connect/plgdbutl.cpp storage/connect/plugutil.c storage/connect/tabfix.cpp storage/connect/tabxml.cpp storage/connect/user_connect.cc storage/connect/value.cpp storage/connect/xindex.cpp --- storage/connect/osutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'storage/connect/osutil.c') diff --git a/storage/connect/osutil.c b/storage/connect/osutil.c index f59f6d2517f..45c834a4cfc 100644 --- a/storage/connect/osutil.c +++ b/storage/connect/osutil.c @@ -14,7 +14,7 @@ my_bool CloseFileHandle(HANDLE h) /* code to handle Linux and Solaris */ #include #include -//#include +#include #include extern FILE *debug; @@ -223,7 +223,7 @@ DWORD FormatMessage(DWORD dwFlags, LPCVOID lpSource, DWORD dwMessageId, //if (dwFlags & FORMAT_MESSAGE_ALLOCATE_BUFFER) // return 0; /* means error */ - n = sprintf(buff, "Error code: %d", dwMessageId); + n = sprintf(buff, "Error code: %d", (int) dwMessageId); strncpy(lpBuffer, buff, nSize); return min(n, nSize); } /* end of FormatMessage */ -- cgit v1.2.1