aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/drm/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c
index 8588fa86..eb419092 100644
--- a/backend/drm/util.c
+++ b/backend/drm/util.c
@@ -103,7 +103,8 @@ void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data)
// Monitor serial numbers are terminated by newline if they're too
// short
- char *nl = strchr(output->serial, '\n');
+ char* nl = strchr(serial_str, '\n');
+
if (nl) {
*nl = '\0';
}