Răsfoiți Sursa

Use PATH_MAX for file path size

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Angus Salkeld 14 ani în urmă
părinte
comite
af29d5bde3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;