mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
xprops: Fix STRING types as well
This commit is contained in:
parent
afa58746ea
commit
f041b35b9b
@ -339,8 +339,7 @@ latin1_string_from_results (GetPropertyResults *results,
|
||||
if (!validate_or_free_results (results, 8, XA_STRING, FALSE))
|
||||
return FALSE;
|
||||
|
||||
*str_p = (char*) results->prop;
|
||||
results->prop = NULL;
|
||||
*str_p = g_strndup ((char *) results->prop, results->n_items);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user