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/headers.h | 1 - plugins/DbEditorPP/src/main.cpp | 14 -------------- 2 files changed, 15 deletions(-) (limited to 'plugins/DbEditorPP/src') diff --git a/plugins/DbEditorPP/src/headers.h b/plugins/DbEditorPP/src/headers.h index c570d2c404..6d34b06761 100644 --- a/plugins/DbEditorPP/src/headers.h +++ b/plugins/DbEditorPP/src/headers.h @@ -187,7 +187,6 @@ int GetValue(HANDLE hContact, const char* szModule, const char* szSetting, char* int GetValueW(HANDLE hContact, const char* szModule, const char* szSetting, WCHAR* Value, int length); char* u2a( wchar_t* src ); wchar_t *a2u( char* src , wchar_t *buffer, int len ); -int mir_snwprintf(WCHAR *buffer, size_t count, const WCHAR* fmt, ...); WCHAR *GetContactName(HANDLE hContact, const char *szProto, int unicode); BOOL IsProtocolLoaded(char* pszProtocolName); 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