From af29d5bde39ebfe8d596aa62ac329b2d2f3bfad5 Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Thu, 14 Jul 2011 16:53:50 +1000 Subject: [PATCH] Use PATH_MAX for file path size Signed-off-by: Angus Salkeld Reviewed-by: Steven Dake --- lib/cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cpg.c b/lib/cpg.c index caf3efed..71704c05 100644 --- a/lib/cpg.c +++ b/lib/cpg.c @@ -777,7 +777,7 @@ cs_error_t cpg_zcb_alloc ( void **buffer) { void *buf = NULL; - char path[128]; + char path[PATH_MAX]; mar_req_coroipcc_zc_alloc_t req_coroipcc_zc_alloc; struct qb_ipc_response_header res_coroipcs_zc_alloc; size_t map_size;