[PATCH 3/5] glx: Use PATH_MAX as size of filename buffer

Christopher James Halse Rogers christopher.halse.rogers at canonical.com
Tue Mar 8 16:17:28 PST 2011


Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers at canonical.com>
---
 glx/glxdricommon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index 5569ab7..16f6588 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",
-- 
1.7.4.1



More information about the xorg-devel mailing list