mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
glx: Use PATH_MAX as size of filename buffer
Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
This commit is contained in:
committed by
Adam Jackson
parent
d17a9fb841
commit
7ca75abbbd
@@ -215,7 +215,7 @@ glxProbeDriver(const char *driverName,
|
||||
{
|
||||
int i;
|
||||
void *driver;
|
||||
char filename[128];
|
||||
char filename[PATH_MAX];
|
||||
const __DRIextension **extensions;
|
||||
|
||||
snprintf(filename, sizeof filename, "%s/%s_dri.so",
|
||||
|
||||
Reference in New Issue
Block a user