X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fuserspace-probe.c;fp=src%2Fcommon%2Fuserspace-probe.c;h=50795c59c0e57e5523a5e02b13ac2f7bf70e0423;hp=e5cba5ed27e4b55a6ca05d8926e5e658d3328a53;hb=b45a296973730d7564a110e16bf50964916be3b7;hpb=eba16d42532fd33fe61ae9ab763932fe8e121243 diff --git a/src/common/userspace-probe.c b/src/common/userspace-probe.c index e5cba5ed2..50795c59c 100644 --- a/src/common/userspace-probe.c +++ b/src/common/userspace-probe.c @@ -1390,7 +1390,7 @@ int lttng_userspace_probe_location_tracepoint_create_from_payload( goto end; } - binary_path = lttng_strndup(binary_path_src, LTTNG_SYMBOL_NAME_LEN); + binary_path = lttng_strndup(binary_path_src, LTTNG_PATH_MAX); if (!binary_path) { PERROR("lttng_strndup"); goto end;