Skip to content
Snippets Groups Projects
Commit 6ce0cadc authored by Daniel Danzberger's avatar Daniel Danzberger Committed by Vivek Dutta
Browse files

Fix invalid use of strncpy/cat functions


- Only use strncpy over strcpy when the source buffer size is unknown or bigger than
  the destination buffer.
- Fixes invalid use of source length as destination buffer limit
- Fixes not 0 terminated strings when using strncpy from glibc

Signed-off-by: default avatarDaniel Danzberger <daniel@dd-wrt.com>
parent da2d3d8b
No related branches found
No related tags found
1 merge request!10Devel prpl
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment