projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
78d6e26
)
Fixing typo in a comment
author
jongfoster
<jongfoster@users.sourceforge.net>
Sun, 12 May 2002 15:34:22 +0000
(15:34 +0000)
committer
jongfoster
<jongfoster@users.sourceforge.net>
Sun, 12 May 2002 15:34:22 +0000
(15:34 +0000)
parsers.c
patch
|
blob
|
history
diff --git
a/parsers.c
b/parsers.c
index
3858549
..
df2ae59
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.5
4 2002/04/02 15:03:16
oes Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.5
5 2002/05/08 16:01:07
oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@
-40,6
+40,14
@@
const char parsers_rcs[] = "$Id: parsers.c,v 1.54 2002/04/02 15:03:16 oes Exp $"
*
* Revisions :
* $Log: parsers.c,v $
*
* Revisions :
* $Log: parsers.c,v $
+ * Revision 1.55 2002/05/08 16:01:07 oes
+ * Optimized add_to_iob:
+ * - Use realloc instead of malloc(), memcpy(), free()
+ * - Expand to powers of two if possible, to get
+ * O(log n) reallocs instead of O(n).
+ * - Moved check for buffer limit here from chat
+ * - Report failure via returncode
+ *
* Revision 1.54 2002/04/02 15:03:16 oes
* Tiny code cosmetics
*
* Revision 1.54 2002/04/02 15:03:16 oes
* Tiny code cosmetics
*
@@
-622,7
+630,7
@@
char *get_header(struct client_state *csp)
if ((q = strchr(ret, '\r')) != NULL) *q = '\0';
if ((q = strchr(ret, '\r')) != NULL) *q = '\0';
- /* is this a blank lin
k
e (i.e. the end of the header) ? */
+ /* is this a blank line (i.e. the end of the header) ? */
if (*ret == '\0')
{
freez(ret);
if (*ret == '\0')
{
freez(ret);