From: Ben Pfaff Date: Tue, 21 Sep 2010 05:15:38 +0000 (-0700) Subject: i18n: Properly restart conversion when output buffer overflows. X-Git-Tag: sav-api~28 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d019e8a29d7963a926837d46ae3592c5731f02e3;hp=d019e8a29d7963a926837d46ae3592c5731f02e3;p=pspp i18n: Properly restart conversion when output buffer overflows. The E2BIG case tries to restart the whole conversion, by reinitializing all variables to their initial states. However the value of 'text' might already have been advanced somewhat if there was a previous loop for e.g. an invalid character. This commit fixes the problem by keeping the original 'text' around and using a moving input pointer instead. ---