Adjust input buffer pointer for output buffer overflow.
authordrepper <drepper>
Wed, 15 Apr 1998 16:55:33 +0000 (16:55 +0000)
committerdrepper <drepper>
Wed, 15 Apr 1998 16:55:33 +0000 (16:55 +0000)
iconvdata/big5.c

index bfd14fd..a6a2580 100644 (file)
@@ -8540,6 +8540,7 @@ gconv (struct gconv_step *step, struct gconv_step_data *data,
                  ++cnt;
                }
              *inbufsize -= cnt;
+             inbuf += cnt;
              data->outbufavail = outwchars;
            }
          else
@@ -8632,6 +8633,7 @@ gconv (struct gconv_step *step, struct gconv_step_data *data,
                  cnt += sizeof (wchar_t);
                }
              *inbufsize -= cnt;
+             inbuf += cnt;
              data->outbufavail = outchars;
 
              if (outchars + extra < data->outbufsize)