mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
edid: Copy the Manufacturer Code char array to a NULL-term string
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3268>
This commit is contained in:
parent
6d0d69558e
commit
4514d29c90
@ -206,7 +206,7 @@ decode_edid_info (const uint8_t *edid,
|
||||
vendor_product = di_edid_get_vendor_product (di_edid);
|
||||
|
||||
/* Manufacturer Code */
|
||||
info->manufacturer_code = g_strdup (vendor_product->manufacturer);
|
||||
info->manufacturer_code = g_strndup (vendor_product->manufacturer, 3);
|
||||
|
||||
/* Product Code */
|
||||
info->product_code = vendor_product->product;
|
||||
|
Loading…
Reference in New Issue
Block a user