diff options
Diffstat (limited to 'src/rcciconv.c')
-rw-r--r-- | src/rcciconv.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/rcciconv.c b/src/rcciconv.c index 3037dc2..9d851be 100644 --- a/src/rcciconv.c +++ b/src/rcciconv.c @@ -1,3 +1,22 @@ +/* + LibRCC - interface to iconv library + + Copyright (C) 2005-2008 Suren A. Chilingaryan <csa@dside.dyndns.org> + + This program is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as published + by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +*/ + #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -74,7 +93,7 @@ loop_restart: out_left = outsize; loop: - err=iconv(icnv->icnv, (const char**)&in_buf, &in_left, &out_buf, &out_left); + err=iconv(icnv->icnv, (char**)&in_buf, &in_left, &out_buf, &out_left); if (err<0) { if (errno==E2BIG) { *(int*)(outbuf+(RCC_MAX_STRING_CHARS-sizeof(int)))=0; |