[svn-commits] bkruse: trunk r133651 - /trunk/main/http.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 25 12:21:47 CDT 2008


Author: bkruse
Date: Fri Jul 25 12:21:46 2008
New Revision: 133651

URL: http://svn.digium.com/view/asterisk?view=rev&rev=133651
Log:
Committing a fix that was introduced a long time
ago (does not affect 1.4), where you would pass
a pointer to the end of a character array, and
ast_uri_decode would do no good.

Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?view=diff&rev=133651&r1=133650&r2=133651
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Fri Jul 25 12:21:46 2008
@@ -400,10 +400,13 @@
  */
 static void http_decode(char *s)
 {
-	for (;*s; s++) {
-		if (*s == '+')
-			*s = ' ';
-	}
+	char *t;
+	
+	for (t = s; *t; t++) {
+		if (*t == '+')
+			*t = ' ';
+	}
+
 	ast_uri_decode(s);
 }
 




More information about the svn-commits mailing list