Module Name: src
Committed By: riastradh
Date: Sun Dec 19 11:45:20 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/linux: hdmi.h
Log Message:
linux/hdmi: Fix strlcpy abuse -- need strncpy to fill field.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/external/bsd/drm2/include/linux/hdmi.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/hdmi.h
diff -u src/sys/external/bsd/drm2/include/linux/hdmi.h:1.11 src/sys/external/bsd/drm2/include/linux/hdmi.h:1.12
--- src/sys/external/bsd/drm2/include/linux/hdmi.h:1.11 Sun Dec 19 11:38:27 2021
+++ src/sys/external/bsd/drm2/include/linux/hdmi.h Sun Dec 19 11:45:20 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: hdmi.h,v 1.11 2021/12/19 11:38:27 riastradh Exp $ */
+/* $NetBSD: hdmi.h,v 1.12 2021/12/19 11:45:20 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -457,8 +457,8 @@ hdmi_spd_infoframe_init(struct hdmi_spd_
hdmi_infoframe_header_init(&frame->header, HDMI_INFOFRAME_TYPE_SPD,
1, HDMI_SPD_INFOFRAME_SIZE);
- (void)strlcpy(frame->vendor, vendor, sizeof(frame->vendor));
- (void)strlcpy(frame->product, product, sizeof(frame->product));
+ strncpy(frame->vendor, vendor, sizeof(frame->vendor));
+ strncpy(frame->product, product, sizeof(frame->product));
return 0;
}