summary refs log tree commit diff
path: root/iconvdata/ibm930.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2014-07-24 17:32:56 +0200
committerAndreas Schwab <schwab@suse.de>2015-12-15 13:40:20 +0100
commit42d6443faf5e8b5c70474923bfcc021b77ee0095 (patch)
tree130af99af6dc36309a7e59783c4ed2e1ad354bfc /iconvdata/ibm930.c
parent04ae79a363e2a85096c4dbdf6d5469d3a19a6907 (diff)
downloadglibc-42d6443faf5e8b5c70474923bfcc021b77ee0095.tar.gz
glibc-42d6443faf5e8b5c70474923bfcc021b77ee0095.tar.xz
glibc-42d6443faf5e8b5c70474923bfcc021b77ee0095.zip
Don't emit invalid extra shift character at block boundary by iconv (bug 17197)
Diffstat (limited to 'iconvdata/ibm930.c')
-rw-r--r--iconvdata/ibm930.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconvdata/ibm930.c b/iconvdata/ibm930.c
index 535d81fb04..a3a54c6830 100644
--- a/iconvdata/ibm930.c
+++ b/iconvdata/ibm930.c
@@ -261,6 +261,7 @@ enum
 		break;							      \
 	      }								      \
 	    *outptr++ = SI;						      \
+	    curcs = sb;							      \
 	  }								      \
 									      \
 	if (__glibc_unlikely (outptr + 1 > outend))			      \
@@ -274,7 +275,6 @@ enum
 	  *outptr++ = 0x5b;						      \
 	else								      \
 	  *outptr++ = cp[0];						      \
-	curcs = sb;							      \
       }									      \
 									      \
     /* Now that we wrote the output increment the input pointer.  */	      \