diff options
author | Haru <haru@dotalux.com> | 2017-03-20 19:43:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 19:43:35 +0100 |
commit | 2ea08e0e58004667f51e56a5295767ac6d1be49b (patch) | |
tree | 716991f4bfd485d4405523be650b12a69d8c462e /src/common | |
parent | 7aae8b0769efadbe42cdaed7ea29cfbc22eca7ab (diff) | |
parent | 1885e79a35b841b0f720d461171f00e1c4e7fa63 (diff) | |
download | hercules-2ea08e0e58004667f51e56a5295767ac6d1be49b.tar.gz hercules-2ea08e0e58004667f51e56a5295767ac6d1be49b.tar.bz2 hercules-2ea08e0e58004667f51e56a5295767ac6d1be49b.tar.xz hercules-2ea08e0e58004667f51e56a5295767ac6d1be49b.zip |
Merge pull request #1641 from 4144/inputfix
Fix npc text input For 2015 clients (Fixes #1640).
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/strlib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c index 75ce2a272..df8093456 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -344,6 +344,7 @@ int strlib_config_switch(const char *str) { } /// strncpy that always null-terminates the string +/// @remark this function will read at most `n` - 1 bytes from `src` (from 0 to `n` - 2) char *strlib_safestrncpy(char *dst, const char *src, size_t n) { if( n > 0 ) |