projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed segv when last line in config files
[privoxy.git]
/
loaders.c
diff --git
a/loaders.c
b/loaders.c
index
8ce3c06
..
312fc2a
100644
(file)
--- a/
loaders.c
+++ b/
loaders.c
@@
-1,4
+1,4
@@
-const char loaders_rcs[] = "$Id: loaders.c,v 1.1
8 2001/06/29 21:45:41
oes Exp $";
+const char loaders_rcs[] = "$Id: loaders.c,v 1.1
9 2001/07/13 14:01:54
oes Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loaders.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/loaders.c,v $
@@
-35,6
+35,9
@@
const char loaders_rcs[] = "$Id: loaders.c,v 1.18 2001/06/29 21:45:41 oes Exp $"
*
* Revisions :
* $Log: loaders.c,v $
*
* Revisions :
* $Log: loaders.c,v $
+ * Revision 1.19 2001/07/13 14:01:54 oes
+ * Removed all #ifdef PCRS
+ *
* Revision 1.18 2001/06/29 21:45:41 oes
* Indentation, CRLF->LF, Tab-> Space
*
* Revision 1.18 2001/06/29 21:45:41 oes
* Indentation, CRLF->LF, Tab-> Space
*
@@
-605,6
+608,10
@@
char *read_config_line(char *buf, int buflen, FILE *fp, struct file_list *fs)
{
*p = '\0';
}
{
*p = '\0';
}
+ else
+ {
+ p = linebuf + strlen(linebuf);
+ }
/* Line continuation? Trim escape and set flag. */
if ((p != linebuf) && (*--p == '\\'))
/* Line continuation? Trim escape and set flag. */
if ((p != linebuf) && (*--p == '\\'))