projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
794ac9f
)
text_to_server_qp() use unsigned char instead of char.
author
Art Cancro
<ajc@citadel.org>
Mon, 22 May 2006 02:57:37 +0000
(
02:57
+0000)
committer
Art Cancro
<ajc@citadel.org>
Mon, 22 May 2006 02:57:37 +0000
(
02:57
+0000)
Fixes bug in transmitting some UTF-8 characters.
webcit/serv_func.c
patch
|
blob
|
history
diff --git
a/webcit/serv_func.c
b/webcit/serv_func.c
index 05574c2660b41b70d7a1a857758adf3d2a89bece..248a788761b1bb5e95837f0d072e1c49b0145222 100644
(file)
--- a/
webcit/serv_func.c
+++ b/
webcit/serv_func.c
@@
-236,8
+236,8
@@
void text_to_server(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;
@@
-245,7
+245,7
@@
void text_to_server_qp(char *ptr)
output_len = 0;
while (ptr[pos] != 0) {
- ch =
ptr[pos++]
;
+ ch =
(unsigned char)(ptr[pos++])
;
if (ch == 13) {
/* ignore carriage returns */