bindings: when implanting a string, make sure to use positive values

This fixes https://savannah.gnu.org/bugs/?54712.
master
Benno Schulenberg 2018-09-23 11:44:47 +02:00
parent bed997171c
commit 600295a3af
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ void unget_kbinput(int kbinput, bool metakey)
void implant(const char *string)
{
for (int i = strlen(string); i > 0; i--)
put_back(string[i - 1]);
put_back((unsigned char)string[i - 1]);
}
#endif