Commit 03f11def authored by Ian Goldberg's avatar Ian Goldberg
Browse files

Change a malloc+strcpy into a strdup in process_receiving_im()

Thanks to Paul Wouters <> for the report.
parent bf23e479
......@@ -781,10 +781,7 @@ static gboolean process_receiving_im(PurpleAccount *account, char **who,
&newmessage, &tlvs, NULL, NULL, NULL);
if (newmessage) {
char *ourm = malloc(strlen(newmessage) + 1);
if (ourm) {
strcpy(ourm, newmessage);
char *ourm = strdup(newmessage);
*message = ourm;
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