Commit abfc2e5f authored by Richard M. Stallman's avatar Richard M. Stallman

(x_get_customization_string): Don't use value of strcpy.

parent b3bf02fa
......@@ -113,7 +113,11 @@ x_get_customization_string (db, name, class)
result = x_get_string_resource (db, full_name, full_class);
if (result)
return strcpy ((char *) malloc (strlen (result) + 1), result);
{
char *copy = (char *) malloc (strlen (result) + 1);
strcpy (copy, result);
return copy;
}
else
return 0;
}
......
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