summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod/src/Common.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewAwaySysMod/src/Common.h')
-rw-r--r--plugins/NewAwaySysMod/src/Common.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/NewAwaySysMod/src/Common.h b/plugins/NewAwaySysMod/src/Common.h
index 178eb52bfb..77da4837d3 100644
--- a/plugins/NewAwaySysMod/src/Common.h
+++ b/plugins/NewAwaySysMod/src/Common.h
@@ -330,10 +330,7 @@ static __inline int LogMessage(const char *Format, ...)
__inline int CallAllowedPS_SETAWAYMSG(const char *szProto, int iMode, const char *szMsg)
{ // we must use this function everywhere we want to call PS_SETAWAYMSG, otherwise NAS won't allow to change the message!
LogMessage("PS_SETAWAYMSG called by NAS. szProto=%s, Status=%d, Msg:\n%s", szProto, iMode, szMsg ? szMsg : "NULL");
- char str[MAXMODULELABELLENGTH];
- strcpy(str, szProto);
- strcat(str, PS_SETAWAYMSG);
- return CallService(str, (WPARAM)iMode, (LPARAM)szMsg);
+ return CallProtoService(szProto, PS_SETAWAYMSG, (WPARAM)iMode, (LPARAM)szMsg);
}
static __inline int my_variables_showhelp(HWND hwndDlg, UINT uIDEdit, int flags = 0, char *szSubjectDesc = NULL, char *szExtraDesc = NULL)