diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-28 00:47:37 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-06-28 00:47:37 +0200 |
commit | 26919fe58ba16b950ef31064133a3169f0873df7 (patch) | |
tree | 5ca7b48a84bd14667bf87152c796130ee82e33bc /src/core/wee-utf8.c | |
parent | 23f111329e621a39c54b11f9a6dfb5e15160d103 (diff) | |
download | weechat-26919fe58ba16b950ef31064133a3169f0873df7.zip |
Add french translation of Plugin API Reference
Diffstat (limited to 'src/core/wee-utf8.c')
-rw-r--r-- | src/core/wee-utf8.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/wee-utf8.c b/src/core/wee-utf8.c index 33255fbaf..9e43bce58 100644 --- a/src/core/wee-utf8.c +++ b/src/core/wee-utf8.c @@ -562,17 +562,17 @@ utf8_pos (const char *string, int real_pos) */ char * -utf8_strndup (const char *string, int max_chars) +utf8_strndup (const char *string, int length) { const char *end; - if (!string || (max_chars < 0)) + if (!string || (length < 0)) return NULL; - if (max_chars == 0) + if (length == 0) return strdup (""); - end = utf8_add_offset (string, max_chars); + end = utf8_add_offset (string, length); if (!end || (end == string)) return strdup (string); |