Skip to content
Snippets Groups Projects
Commit 68e0003e authored by Indu Bhagat's avatar Indu Bhagat
Browse files

libsframe: replace an strncat with strcat

Calling strncat with the size of the src string is not so meaningful.
The length argument to strncat should specify the remaining bytes
bytes in the destination; although in this case, it appears to be
unncessary altogether to use strncat in the first place.

libsframe/
        * sframe-dump.c (dump_sframe_func_with_fres): Use of strcat is
	just as fine.
parent 027d8f78
No related branches found
No related tags found
No related merge requests found
......@@ -176,8 +176,7 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx,
const char *ra_mangled_p_str
= ((sframe_fre_get_ra_mangled_p (sfd_ctx, &fre, &err[2]))
? "[s]" : " ");
size_t ra_mangled_p_str_size = strlen (ra_mangled_p_str);
strncat (temp, ra_mangled_p_str, ra_mangled_p_str_size);
strcat (temp, ra_mangled_p_str);
printf ("%-13s", temp);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment