Commit fb5f16a1 authored by Antenore Gatta's avatar Antenore Gatta

Fixing a possible crash whith strdup if string.h is not inluded

parent 67401d91
......@@ -1160,7 +1160,7 @@ static gboolean remmina_plugin_vnc_main(RemminaProtocolWidget *gp)
cl->destPort = cl->serverPort;
remmina_plugin_service->get_server_port(remmina_plugin_service->file_get_string(remminafile, "proxy"), 5900,
&s, &cl->serverPort);
cl->serverHost = strdup(s);
cl->serverHost = g_strdup(s);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment