X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=encode.c;h=8676fc95ab2c9093d5de4d5d14139bc244dfd7af;hp=d61ae72dd47b79e28aa88f5d59eeed0f0b5ed5f1;hb=663a7dfe57f6dafdb7e2283131d16ec25a2f067d;hpb=50f87c9446b435d47c371f63615260636639f450 diff --git a/encode.c b/encode.c index d61ae72d..8676fc95 100644 --- a/encode.c +++ b/encode.c @@ -1,4 +1,4 @@ -const char encode_rcs[] = "$Id: encode.c,v 1.25 2012/03/09 16:23:50 fabiankeil Exp $"; +const char encode_rcs[] = "$Id: encode.c,v 1.27 2012/03/09 17:55:49 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/encode.c,v $ @@ -47,7 +47,7 @@ const char encode_rcs[] = "$Id: encode.c,v 1.25 2012/03/09 16:23:50 fabiankeil E const char encode_h_rcs[] = ENCODE_H_VERSION; /* Maps special characters in a URL to their equivalent % codes. */ -static const char const url_code_map[256][4] = { +static const char url_code_map[256][4] = { "", "%01", "%02", "%03", "%04", "%05", "%06", "%07", "%08", "%09", "%0A", "%0B", "%0C", "%0D", "%0E", "%0F", "%10", "%11", "%12", "%13", "%14", "%15", "%16", "%17", "%18", "%19", "%1A", "%1B", "%1C", "%1D", @@ -428,7 +428,7 @@ char *percent_encode_url(const char *s) { char c; char *p = buf; - while((c = *s++) != '\0') + while ((c = *s++) != '\0') { const unsigned int i = (unsigned char)c; if (i >= sizeof(allowed_characters) || '\0' == allowed_characters[i])