diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-18 14:55:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-18 14:55:30 +0000 |
commit | 4a3f10d8e8775a530f5e00f1ceb2d787a8960867 (patch) | |
tree | cd9d8630f8a3934dc4f2f48aeefc843a97cd9957 /src/mir_core/protos.cpp | |
parent | caa501cf1ddba8a86e316e41a4a0bf34e8d602ba (diff) |
we better check parameters...
git-svn-id: http://svn.miranda-ng.org/main/trunk@5017 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core/protos.cpp')
-rw-r--r-- | src/mir_core/protos.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_core/protos.cpp b/src/mir_core/protos.cpp index ca7a9513fa..dfa83a1800 100644 --- a/src/mir_core/protos.cpp +++ b/src/mir_core/protos.cpp @@ -60,6 +60,9 @@ MIR_CORE_DLL(INT_PTR) ProtoBroadcastAck(const char *szModule, HANDLE hContact, i MIR_CORE_DLL(int) ProtoServiceExists(const char *szModule, const char *szService)
{
+ if (szModule == NULL || szService == NULL)
+ return false;
+
char str[MAXMODULELABELLENGTH * 2];
strncpy_s(str,szModule,strlen(szModule));
strncat_s(str,szService,strlen(szService));
|