--- recode-3.6/src/libiconv.c.orig      Sat Jul  1 17:13:25 2000
+++ recode-3.6/src/libiconv.c   Fri Sep 19 18:05:03 2014
@@ -195,9 +195,9 @@
         memcpy() doesn't do here, because the regions might overlap.
         memmove() isn't worth it, because we rarely have to move more
         than 12 bytes.  */
+      cursor = input_buffer;
       if (input > input_buffer && input_left > 0)
        {
-         cursor = input_buffer;
          do
            *cursor++ = *input++;
          while (--input_left > 0);

Reply via email to