Skip to content

Commit

Permalink
glx: Use PATH_MAX as size of filename buffer
Browse files Browse the repository at this point in the history
Reviewed-by: Adam Jackson <[email protected]>
Signed-off-by: Christopher James Halse Rogers <[email protected]>
  • Loading branch information
RAOF authored and nwnk committed Mar 14, 2011
1 parent d17a9fb commit 7ca75ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glx/glxdricommon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7ca75ab

Please sign in to comment.