summaryrefslogtreecommitdiff
path: root/src/core/misc.h
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-02-13 13:18:24 +0100
committerLemonBoy <thatlemon@gmail.com>2016-06-05 16:24:55 +0200
commit72712a0c62b0403f0fa472ccbe34fda8fb2cd530 (patch)
tree54b053fa85d0630ff04f5f8e65843fe14a85e00a /src/core/misc.h
parent8289f360757870b56a15576a20e79e1f2ca30fef (diff)
downloadirssi-72712a0c62b0403f0fa472ccbe34fda8fb2cd530.zip
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.
Diffstat (limited to 'src/core/misc.h')
-rw-r--r--src/core/misc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/misc.h b/src/core/misc.h
index 58b665bf..fdb16a49 100644
--- a/src/core/misc.h
+++ b/src/core/misc.h
@@ -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);