This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | SECURE_STRNCPY(dst, src, size) do { strncpy(dst, src, (size)-1); (dst)[(size)-1] = '\0'; } while (0) |
| #define | SECURE_STRNCAT(dst, src, size) do { strncat(dst, src, (size)-1); (dst)[(size)-1] = '\0'; } while (0) |
| #define SECURE_STRNCAT | ( | dst, | |||
| src, | |||||
| size | ) | do { strncat(dst, src, (size)-1); (dst)[(size)-1] = '\0'; } while (0) |
Copy string src to dst. Copy at maximum size-1 characters and make sure that the string finish with a '\0'.
Workaround strncat security problem: if size is smaller than strlen(src), dst doesn't contains '\0'. This macro copy on maximum size-1 characters, and always write a '\0' on last position (dst[size-1]).
Definition at line 45 of file security.h.
| #define SECURE_STRNCPY | ( | dst, | |||
| src, | |||||
| size | ) | do { strncpy(dst, src, (size)-1); (dst)[(size)-1] = '\0'; } while (0) |
Copy string src to dst. Copy at maximum size-1 characters and make sure that the string finish with a '\0'.
Workaround strncpy security problem: if size is smaller than strlen(src), dst doesn't contains '\0'. This macro copy on maximum size-1 characters, and always write a '\0' on last position (dst[size-1]).
Definition at line 34 of file security.h.
Referenced by _init_pam_nufw_s(), _pam_parse(), do_connect(), format_ipv6(), hex2ipv6(), main(), nu_get_usersecret(), parse_cmdline_options(), secure_str_copy(), and verify_user_password().
1.4.7