aboutsummaryrefslogtreecommitdiffstats
path: root/common/stringhelp.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-11-23 21:13:56 +0000
committerNeal H. Walfield <[email protected]>2015-11-23 21:23:37 +0000
commit5b84b0d660c8329e184d98682665aaea7e1703d2 (patch)
tree7eb86d1423780c332b27daa9226e1144e451bcb3 /common/stringhelp.h
parentdirmngr: Fix http lookups when libadns is used. (diff)
downloadgnupg-5b84b0d660c8329e184d98682665aaea7e1703d2.tar.gz
gnupg-5b84b0d660c8329e184d98682665aaea7e1703d2.zip
common: Extend utf8_charcount to include the string's length.
* common/stringhelp.c (utf8_charcount): Take additional parameter, len. Process at most LEN bytes. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'common/stringhelp.h')
-rw-r--r--common/stringhelp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/stringhelp.h b/common/stringhelp.h
index a84c81b3f..b34d28b89 100644
--- a/common/stringhelp.h
+++ b/common/stringhelp.h
@@ -64,7 +64,7 @@ int hextobyte (const char *s);
char *sanitize_buffer (const void *p, size_t n, int delim);
-size_t utf8_charcount (const char *s);
+size_t utf8_charcount (const char *s, int len);
#ifdef HAVE_W32_SYSTEM