Changeset 70 for trunk


Ignore:
Timestamp:
07/30/06 15:06:34 (18 years ago)
Author:
tim
Message:

made iconv parameter types more correct.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reglookup.c

    r69 r70  
    149149  char* inbuf = (char*)uni;
    150150  char* outbuf = ascii;
    151   unsigned int out_len = ascii_max-1;
     151  size_t in_len = (size_t)uni_max;
     152  size_t out_len = (size_t)(ascii_max-1);
    152153  int ret;
    153154
     
    155156  conv_desc = iconv_open("US-ASCII", "UTF-16LE");
    156157
    157   ret = iconv(conv_desc, &inbuf, &uni_max, &outbuf, &out_len);
     158  ret = iconv(conv_desc, &inbuf, &in_len, &outbuf, &out_len);
    158159  if(ret == -1)
    159160  {
Note: See TracChangeset for help on using the changeset viewer.