mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Replace strocpy with g_strlcpy
The only difference was that the former returned 1 if the buffer was overflown, but the return value was never checked.
This commit is contained in:
parent
8289f36075
commit
72712a0c62
4 changed files with 4 additions and 21 deletions
|
|
@ -83,9 +83,6 @@ int parse_size(const char *size, int *bytes);
|
|||
Stop when `end_char' is found from string. */
|
||||
int is_numeric(const char *str, char end_char);
|
||||
|
||||
/* Like strlcpy(), but return -1 if buffer was overflown, 0 if not. */
|
||||
int strocpy(char *dest, const char *src, size_t dstsize);
|
||||
|
||||
/* strstr() with case-ignoring */
|
||||
char *stristr(const char *data, const char *key);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue