X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=encode.c;h=6cb57cf5aa72c9bab88651c78f6f567fb8e1f718;hp=8676fc95ab2c9093d5de4d5d14139bc244dfd7af;hb=34a6a841e529579e2be4457ea0d4cb1befbc840a;hpb=152b7786e42b6abae1710dd51a9eb5910d62d9e9 diff --git a/encode.c b/encode.c index 8676fc95..6cb57cf5 100644 --- a/encode.c +++ b/encode.c @@ -1,4 +1,3 @@ -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 $ @@ -7,7 +6,7 @@ const char encode_rcs[] = "$Id: encode.c,v 1.27 2012/03/09 17:55:49 fabiankeil E * encode cookies and HTML text. * * Copyright : Written by and Copyright (C) 2001 the - * Privoxy team. http://www.privoxy.org/ + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -44,8 +43,6 @@ const char encode_rcs[] = "$Id: encode.c,v 1.27 2012/03/09 17:55:49 fabiankeil E #include "miscutil.h" #include "encode.h" -const char encode_h_rcs[] = ENCODE_H_VERSION; - /* Maps special characters in a URL to their equivalent % codes. */ static const char url_code_map[256][4] = { "", "%01", "%02", "%03", "%04", "%05", "%06", "%07", "%08", "%09", @@ -158,9 +155,10 @@ char * html_encode(const char *s) } *p = '\0'; + + assert(strlen(buf) < buf_size); } - assert(strlen(buf) < buf_size); return(buf); } @@ -253,9 +251,9 @@ char * url_encode(const char *s) *p = '\0'; + assert(strlen(buf) < buf_size); } - assert(strlen(buf) < buf_size); return(buf); } @@ -448,9 +446,9 @@ char *percent_encode_url(const char *s) } } *p = '\0'; - } - assert(strlen(buf) < buf_size); + assert(strlen(buf) < buf_size); + } return(buf);