Use PATH_MAX for file path size

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Angus Salkeld 2011-07-14 16:53:50 +10:00
parent bd150728bf
commit af29d5bde3

View File

@ -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;