From 6946a3844a600d128a46e7064c338408ca931dd2 Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Sun, 20 Apr 2008 18:09:50 +0000 Subject: [PATCH] - BUG avec urlencode() : s/char/unsigned char/ pour eviter des entiers negatifs !! - On limite la longueur de encbuf a 160 caracteres --- sendsms2mobyt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sendsms2mobyt.c b/sendsms2mobyt.c index eae5986..b6a96fa 100644 --- a/sendsms2mobyt.c +++ b/sendsms2mobyt.c @@ -36,7 +36,7 @@ int urlencode (char *msg, char *encmsg) { char *h = "0123456789abcdef"; unsigned int i; - char c; + unsigned char c; int ind=0; for (i=0;i