Module Name: xsrc
Committed By: joerg
Date: Wed Nov 2 20:56:40 UTC 2016
Modified Files:
xsrc/external/mit/xorg-server/dist/hw/xfree86/common: xf86Configure.c
Log Message:
Add explicit cast before writing to newly allocated memory.
XXX Beside the strange allocation size, this could be XNFstrdup.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Configure.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Configure.c
diff -u xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Configure.c:1.9 xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Configure.c:1.10
--- xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Configure.c:1.9 Thu Aug 18 18:52:02 2016
+++ xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86Configure.c Wed Nov 2 20:56:40 2016
@@ -144,7 +144,7 @@ xf86AddBusDeviceToConfigure(const char *
#if defined(__arm32__) || defined(__arm__)
case BUS_ISA:
DevToConfig[i].GDev.busID = xnfalloc(6);
- strcpy(DevToConfig[i].GDev.busID, "ISA");
+ strcpy((char *)DevToConfig[i].GDev.busID, "ISA");
break;
#endif
default: