/* Recode Serbian text from Cyrillic to Latin script.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006-2007 Free Software Foundation, Inc.
Written by Danilo Ĺ egan <danilo@gnome.org>, 2006,
and Bruno Haible <bruno@clisp.org>, 2006.
beginning of a character; the second and further bytes of a character are
all in the range \x80..\xBF. */
- /* Since sequences of 2 bytes are sequences of at most 3 bytes, the size
- of the output will be at most 1.5 * input_len. */
+ /* Since sequences of 2 bytes are mapped to sequences of at most 3 bytes,
+ the size of the output will be at most 1.5 * input_len. */
size_t allocated = input_len + (input_len >> 1);
char *output = XNMALLOC (allocated, char);