Fixes bug in transmitting some UTF-8 characters.
*/
void text_to_server_qp(char *ptr)
{
*/
void text_to_server_qp(char *ptr)
{
- char buf[256];
- int ch, pos;
+ unsigned char ch, buf[256];
+ int pos;
int output_len = 0;
pos = 0;
int output_len = 0;
pos = 0;
output_len = 0;
while (ptr[pos] != 0) {
output_len = 0;
while (ptr[pos] != 0) {
+ ch = (unsigned char)(ptr[pos++]);
if (ch == 13) {
/* ignore carriage returns */
if (ch == 13) {
/* ignore carriage returns */