xprops: Fix STRING types as well

This commit is contained in:
Jasper St. Pierre 2015-06-26 13:51:45 -07:00
parent afa58746ea
commit f041b35b9b

View File

@ -339,8 +339,7 @@ latin1_string_from_results (GetPropertyResults *results,
if (!validate_or_free_results (results, 8, XA_STRING, FALSE)) if (!validate_or_free_results (results, 8, XA_STRING, FALSE))
return FALSE; return FALSE;
*str_p = (char*) results->prop; *str_p = g_strndup ((char *) results->prop, results->n_items);
results->prop = NULL;
return TRUE; return TRUE;
} }