Module Name: xsrc Committed By: riastradh Date: Sun Sep 9 03:24:46 UTC 2018
Modified Files: xsrc/external/mit/libdrm/dist: xf86drm.c Log Message: Let's get the sense of strncmp correct, shall we? PR pkg/51795 PR kern/51786 XXX pullup-7 XXX pullup-8 To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 xsrc/external/mit/libdrm/dist/xf86drm.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/libdrm/dist/xf86drm.c diff -u xsrc/external/mit/libdrm/dist/xf86drm.c:1.18 xsrc/external/mit/libdrm/dist/xf86drm.c:1.19 --- xsrc/external/mit/libdrm/dist/xf86drm.c:1.18 Sun Sep 9 03:05:36 2018 +++ xsrc/external/mit/libdrm/dist/xf86drm.c Sun Sep 9 03:24:46 2018 @@ -3055,7 +3055,7 @@ static int drmParseSubsystemType(int maj /* Find a string we know about; otherwise -EINVAL. */ ret = -EINVAL; - if (strncmp(buf, "pci:", 4) != 0) + if (strncmp(buf, "pci:", 4) == 0) ret = DRM_BUS_PCI; /* We're done with the bus id. */