From 3e02ce14f6cce63910b266655a9c33bd3a70f17a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 24 Jul 2013 14:52:01 +0000 Subject: replace sprintf to mir_snprintf (part 4) git-svn-id: http://svn.miranda-ng.org/main/trunk@5467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'plugins/DbEditorPP/src/main.cpp') diff --git a/plugins/DbEditorPP/src/main.cpp b/plugins/DbEditorPP/src/main.cpp index f1f5c81b30..74692369e4 100644 --- a/plugins/DbEditorPP/src/main.cpp +++ b/plugins/DbEditorPP/src/main.cpp @@ -491,20 +491,6 @@ wchar_t *a2u( char* src , wchar_t *buffer, int len ) return result; } -int mir_snwprintf(WCHAR *buffer, size_t count, const WCHAR* fmt, ...) -{ - va_list va; - int len; - - va_start(va, fmt); - len = _vsnwprintf(buffer, count-1, fmt, va); - va_end(va); - - buffer[count-1] = 0; - - return len; -} - int GetDatabaseString(HANDLE hContact, const char *szModule, const char* szSetting, WCHAR *Value, int length, BOOL unicode) { if (unicode) -- cgit v1.2.3