Re: [PATCH libdrm 1/2] Avoid hardcoded strlens in drmParseSubsystemType().

2018-11-15 Thread Eric Engestrom
On Thursday, 2018-11-15 21:18:42 -0800, Eric Anholt wrote: > Having people count characters is error-prone, when we could just have > a computer do it. Reviewed-by: Eric Engestrom > --- > xf86drm.c | 31 --- > 1 file changed, 16 insertions(+), 15 deletions(-) > >

[PATCH libdrm 1/2] Avoid hardcoded strlens in drmParseSubsystemType().

2018-11-15 Thread Eric Anholt
Having people count characters is error-prone, when we could just have a computer do it. --- xf86drm.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 10df682b7870..60fbc49b3d35 100644 --- a/xf86drm.c +++