Patch to fix null termination of string buffer

2016-12-13 Thread archer_...@yahoo.co.jp
This is my first time to sending a patch to the mailing list. So, I'm sorry if I did something wrong. The function drmParsePciBusInfo() in xf86drm.c reads the contents of the file "/sys/dev/char/x:y/device/uevent" into the buffer. The string written to the buffer by read() is not null-terminate

Patch to fix null termination of string buffer

2016-12-13 Thread archer_...@yahoo.co.jp
This is my first time to sending a patch to the mailing list. So, I'm sorry if I did something wrong. The function drmParsePciBusInfo() in xf86drm.c reads the contents of the file "/sys/dev/char/x:y/device/uevent" into the buffer. The string written to the buffer by read() is not null-terminate