diff options
author | Alexey Shchepin <alexey@process-one.net> | 2005-05-17 12:51:47 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2005-05-17 12:51:47 +0000 |
commit | fb870ca15d1cc4d7262d499c17b263ae210db7c4 (patch) | |
tree | 531b58049483e6c4e90a17953d49ba9508ce08e5 /src | |
parent | * src/win32/ejabberd.cfg: Updated (thanks to Sergei Golovan) (diff) |
* src/stringprep/stringprep_drv.c: Bugfix
SVN Revision: 348
Diffstat (limited to 'src')
-rw-r--r-- | src/stringprep/stringprep_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stringprep/stringprep_drv.c b/src/stringprep/stringprep_drv.c index df77d39c..047ca204 100644 --- a/src/stringprep/stringprep_drv.c +++ b/src/stringprep/stringprep_drv.c @@ -143,7 +143,7 @@ static int compose(int ch1, int ch2) rstring[pos+2] = (char) ((ruc | 0x80) & 0xBF); \ pos += 3; \ } else if (ruc <= 0x1FFFFF) { \ - if (pos + 2 >= size) { \ + if (pos + 3 >= size) { \ size = 2*size + 4; \ rstring = driver_realloc(rstring, size); \ } \ |