Show
Ignore:
Timestamp:
07/02/08 23:02:49 (5 months ago)
Author:
flynd
Message:

Restore portable cast expression for iconv() call.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/licq/src/translate.cpp

    r6226 r6399  
    456456  char* result = new char[outLen + 1]; 
    457457 
    458   // iconv() has inbuf parameter declared as char** even though the data is 
    459   // never modified so it's safe to cast away the const here. 
    460   char* inPtr = const_cast<char*>(array); 
    461458  char* outPtr = result; 
    462459  iconv_t tr; 
     
    472469  else 
    473470  { 
    474     size_t ret = iconv(tr, &inPtr, &inLen, &outPtr, &outLen); 
     471    size_t ret = iconv(tr, (ICONV_CONST char**)&array, &inLen, &outPtr, &outLen); 
    475472    iconv_close(tr); 
    476473