summaryrefslogtreecommitdiff
path: root/plugins/ContactsPlus/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-19 19:47:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-19 19:47:56 +0000
commitfa906d9bf4baec75ba72bed046d3fb5f794206a8 (patch)
tree5bd3904c86e6ab514069c3baeba18e0746b4483a /plugins/ContactsPlus/src/utils.cpp
parent467eb738e716c92abc1232c3f81c77c4c9098415 (diff)
crash on send
git-svn-id: http://svn.miranda-ng.org/main/trunk@7289 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ContactsPlus/src/utils.cpp')
-rw-r--r--plugins/ContactsPlus/src/utils.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/ContactsPlus/src/utils.cpp b/plugins/ContactsPlus/src/utils.cpp
index dcfdda958b..e72c1ed7b3 100644
--- a/plugins/ContactsPlus/src/utils.cpp
+++ b/plugins/ContactsPlus/src/utils.cpp
@@ -23,8 +23,6 @@
#include "contacts.h"
-int utf8_decode(const unsigned char *from, char **to);
-
/* a strlennull() that likes NULL */
size_t __fastcall strlennull(const char *string)
{
@@ -41,6 +39,14 @@ int __fastcall strcmpnull(const char *str1, const char *str2)
return strcmp(str1, str2);
}
+void __fastcall strcpynull(char *str1, const char *str2)
+{
+ if (!str2)
+ str2 = "";
+
+ strcpy(str1, str2);
+}
+
char* __fastcall null_strdup(const char *string)
{
if (string)