We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3e1b6a commit 654a482Copy full SHA for 654a482
QtLxBTSC/plugin.cpp
@@ -12,8 +12,6 @@
12
13
#include "plugin.h"
14
#include "PluginHelper.h"
15
-//#include <iostream>
16
-//#include <cassert>
17
18
#define PLUGIN_API_VERSION 22
19
#define PATH_BUFSIZE 512
@@ -86,7 +84,9 @@ void ts3plugin_shutdown() {
86
84
*/
87
85
88
void ts3plugin_registerPluginID(const char* id) {
89
- pluginID = _strdup(id);
+ int len = strlen(id);
+ pluginID = static_cast<char*>(malloc(len + 1));
+ memcpy(pluginID, id, len + 1);
90
}
91
92
/* Plugin command keyword. Return NULL or "" if not used. */
0 commit comments