summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>2011-03-09 11:17:28 +1100
committerAdam Jackson <ajax@redhat.com>2011-03-14 13:42:55 -0400
commit7ca75abbbdd2a1211e52a4f43ac4ed24d3c8ab34 (patch)
tree64e90a5d6d3be3cfb45ba24e96008fa20129c409
parentd17a9fb8414becf6a8998041df68f209f9222b2b (diff)
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>
-rw-r--r--glx/glxdricommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index daa955db8..9149e0db1 100644
--- a/glx/glxdricommon.c
+++ b/glx/glxdricommon.c
@@ -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",