projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4cd5183
)
Make xtoi() extern so it can be used in pcrs.c.
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 18 Aug 2007 14:34:27 +0000
(14:34 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 18 Aug 2007 14:34:27 +0000
(14:34 +0000)
encode.c
patch
|
blob
|
history
encode.h
patch
|
blob
|
history
diff --git
a/encode.c
b/encode.c
index
f7c07bf
..
b95ada8
100644
(file)
--- a/
encode.c
+++ b/
encode.c
@@
-1,4
+1,4
@@
-const char encode_rcs[] = "$Id: encode.c,v 1.1
1 2006/12/28 18:25:53
fabiankeil Exp $";
+const char encode_rcs[] = "$Id: encode.c,v 1.1
2 2007/08/04 10:15:51
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/encode.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/encode.c,v $
@@
-33,6
+33,9
@@
const char encode_rcs[] = "$Id: encode.c,v 1.11 2006/12/28 18:25:53 fabiankeil E
*
* Revisions :
* $Log: encode.c,v $
*
* Revisions :
* $Log: encode.c,v $
+ * Revision 1.12 2007/08/04 10:15:51 fabiankeil
+ * Use strlcpy() instead of strcpy().
+ *
* Revision 1.11 2006/12/28 18:25:53 fabiankeil
* Fixed gcc43 compiler warning.
*
* Revision 1.11 2006/12/28 18:25:53 fabiankeil
* Fixed gcc43 compiler warning.
*
@@
-426,7
+429,7
@@
static int xdtoi(const int d)
* Returns : The integer value, or 0 for non-hex strings.
*
*********************************************************************/
* Returns : The integer value, or 0 for non-hex strings.
*
*********************************************************************/
-
static
int xtoi(const char *s)
+int xtoi(const char *s)
{
int d1, d2;
{
int d1, d2;
diff --git
a/encode.h
b/encode.h
index
ae91bbb
..
c54645e
100644
(file)
--- a/
encode.h
+++ b/
encode.h
@@
-1,9
+1,9
@@
#ifndef ENCODE_H_INCLUDED
#define ENCODE_H_INCLUDED
#ifndef ENCODE_H_INCLUDED
#define ENCODE_H_INCLUDED
-#define ENCODE_H_VERSION "$Id: encode.h,v 1.
5 2002/03/26 22:29:54 swa
Exp $"
+#define ENCODE_H_VERSION "$Id: encode.h,v 1.
7 2006/07/18 14:48:45 david__schmidt
Exp $"
/*********************************************************************
*
/*********************************************************************
*
- * File : $Source: /cvsroot/ijbswa/current/
Attic/
encode.h,v $
+ * File : $Source: /cvsroot/ijbswa/current/encode.h,v $
*
* Purpose : Functions to encode and decode URLs, and also to
* encode cookies and HTML text.
*
* Purpose : Functions to encode and decode URLs, and also to
* encode cookies and HTML text.
@@
-35,6
+35,10
@@
*
* Revisions :
* $Log: encode.h,v $
*
* Revisions :
* $Log: encode.h,v $
+ * Revision 1.7 2006/07/18 14:48:45 david__schmidt
+ * Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
+ * with what was really the latest development (the v_3_0_branch branch)
+ *
* Revision 1.5 2002/03/26 22:29:54 swa
* we have a new homepage!
*
* Revision 1.5 2002/03/26 22:29:54 swa
* we have a new homepage!
*
@@
-65,7
+69,7
@@
extern char * html_encode(const char *s);
extern char * cookie_encode(const char *s);
extern char * url_encode(const char *s);
extern char * url_decode(const char *str);
extern char * cookie_encode(const char *s);
extern char * url_encode(const char *s);
extern char * url_decode(const char *str);
-
+extern int xtoi(const char *s);
extern char * html_encode_and_free_original(char *s);
/* Revision control strings from this header and associated .c file */
extern char * html_encode_and_free_original(char *s);
/* Revision control strings from this header and associated .c file */