Changeset 6201646 for util.c


Ignore:
Timestamp:
Dec 28, 2007, 5:21:57 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
7b1d048
Parents:
5376a95
Message:
Fixing bug encountered when last field was not null-terminated.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r5376a95 r6201646  
    801801 * for formatting.
    802802 */
    803 char * owl_validate_or_convert(char *in, int len)
    804 {
    805   if (g_utf8_validate(in, len , NULL)) {
     803char * owl_validate_or_convert(char *in)
     804{
     805  if (g_utf8_validate(in, -1, NULL)) {
    806806    return owl_strip_format_chars(in);
    807807  }
    808808  else {
    809     return g_convert(in, len,
     809    return g_convert(in, -1,
    810810                     "UTF-8", "ISO-8859-1",
    811811                     NULL, NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.