Use ICONV_CONST for portability.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 14 Oct 2002 18:51:02 +0000 (18:51 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Mon, 14 Oct 2002 18:51:02 +0000 (18:51 +0000)
gedcom/encoding.c

index 4feac587c92ff5726c3653f0d68d8c71cdb46190..d484d1c7847054a7cd3fdf0c8d5c4eccf832f5f9 100644 (file)
@@ -289,7 +289,7 @@ char* to_internal(const char* str, size_t len,
   size_t res;
   size_t outsize = out_len;
   char *wrptr = output_buffer;
-  char *rdptr = conv_buf;
+  ICONV_CONST char *rdptr = (ICONV_CONST char*) conv_buf;
   char *retval = output_buffer;
   /* set up input buffer (concatenate to what was left previous time) */
   /* can't use strcpy, because possible null bytes from unicode */