From 2a815f8820ca402626bd283dd5b75744ddeb9812 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 18:55:59 +0000 Subject: mir_tstrncpy <> _tcsncpy git-svn-id: http://svn.miranda-ng.org/main/trunk@13791 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Nudge/src/nudge.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Nudge/src') diff --git a/plugins/Nudge/src/nudge.cpp b/plugins/Nudge/src/nudge.cpp index 7fe7c5dc9c..75dc07b063 100644 --- a/plugins/Nudge/src/nudge.cpp +++ b/plugins/Nudge/src/nudge.cpp @@ -82,19 +82,19 @@ void CNudgeElement::Load(void) mir_snprintf(SectionName,SIZEOF(SectionName),"%s-recText", ProtocolName); if (!db_get_ts(NULL, MODULENAME, SectionName, &dbv)) { - mir_tstrncpy(this->recText, dbv.ptszVal, TEXT_LEN); + _tcsncpy(this->recText, dbv.ptszVal, TEXT_LEN); if (_tcsclen(this->recText) < 1) - mir_tstrncpy(this->recText, TranslateT("You received a nudge"), TEXT_LEN); + _tcsncpy(this->recText, TranslateT("You received a nudge"), TEXT_LEN); db_free(&dbv); } - else mir_tstrncpy(this->recText, TranslateT("You received a nudge"), TEXT_LEN); + else _tcsncpy(this->recText, TranslateT("You received a nudge"), TEXT_LEN); mir_snprintf(SectionName, SIZEOF(SectionName), "%s-senText", ProtocolName); if (!db_get_ts(NULL, MODULENAME, SectionName, &dbv)) { - mir_tstrncpy(this->senText, dbv.ptszVal, TEXT_LEN); + _tcsncpy(this->senText, dbv.ptszVal, TEXT_LEN); if (_tcsclen(this->senText) < 1) - mir_tstrncpy(this->senText, TranslateT("You sent a nudge"), TEXT_LEN); + _tcsncpy(this->senText, TranslateT("You sent a nudge"), TEXT_LEN); db_free(&dbv); } - else mir_tstrncpy(this->senText, TranslateT("You sent a nudge"), TEXT_LEN); + else _tcsncpy(this->senText, TranslateT("You sent a nudge"), TEXT_LEN); } -- cgit v1.2.3