Changeset 6399
- Timestamp:
- 07/02/08 23:02:49 (3 months ago)
- Files:
-
- 1 modified
-
trunk/licq/src/translate.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/src/translate.cpp
r6226 r6399 456 456 char* result = new char[outLen + 1]; 457 457 458 // iconv() has inbuf parameter declared as char** even though the data is459 // never modified so it's safe to cast away the const here.460 char* inPtr = const_cast<char*>(array);461 458 char* outPtr = result; 462 459 iconv_t tr; … … 472 469 else 473 470 { 474 size_t ret = iconv(tr, &inPtr, &inLen, &outPtr, &outLen);471 size_t ret = iconv(tr, (ICONV_CONST char**)&array, &inLen, &outPtr, &outLen); 475 472 iconv_close(tr); 476 473
