Explorar o código

Use PATH_MAX for file path size

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Angus Salkeld %!s(int64=14) %!d(string=hai) anos
pai
achega
af29d5bde3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/cpg.c

+ 1 - 1
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;