summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2010-12-05 19:15:46 (GMT)
committer Fran├žois Revel <mmu_man@netsurf-browser.org>2010-12-05 19:15:46 (GMT)
commit40487fe6fc059196b75ed5fdba122be8fbd8d7eb (patch)
treea75c8c224505adab451f99da3b36a406f06d8967
parent4f04d58ed21631215b54817fa11dc2f7243e8b06 (diff)
downloadlibparserutils-40487fe6fc059196b75ed5fdba122be8fbd8d7eb.tar.gz
libparserutils-40487fe6fc059196b75ed5fdba122be8fbd8d7eb.tar.bz2
C89
svn path=/trunk/libparserutils/; revision=11013
-rw-r--r--src/charset/aliases.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/charset/aliases.c b/src/charset/aliases.c
index 81962eb..9c8a4eb 100644
--- a/src/charset/aliases.c
+++ b/src/charset/aliases.c
@@ -80,8 +80,11 @@ parserutils_charset_aliases_canon *parserutils_charset_alias_canonicalise(
const char *alias, size_t len)
{
parserutils_charset_aliases_alias *c;
- lengthed_string s = {len, alias};
+ lengthed_string s;
+ s.s = alias;
+ s.slen = len;
+ s.s = alias;
c = (parserutils_charset_aliases_alias*)bsearch(&s,
&charset_aliases[0],
charset_aliases_count,