cmd: pxe: use strdup to copy config
Replace malloc and strcpy by strdup in
function parse_label_kernel.

[Backport of commit 51c5c28af59c ("cmd: pxe: use strdup to
 copy config")]

Signed-off-by: Patrick Delaunay <>
Reviewed-by: Neil Armstrong <>
Change-Id: I265e5843b2411596c17a0328e676c6e27ffc755d
1 parent 707cc0f commit d3567e68bd929ca7f64c6d5707602407dbfb019a
@Patrick Delaunay Patrick Delaunay authored on 28 Oct 2022
Showing 1 changed file