diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2010-05-19 14:42:52 +0000 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2010-05-19 14:42:52 +0000 |
commit | 05d695f8c6f7e3200bbfdb8383dcf2a1c40df2d5 (patch) | |
tree | 89950113e99bd5199715f83d37df3f8c91ea0cad /devel/cgilib | |
parent | ad5b61da8b01dde85b6c17ac4c8c206c75ab3462 (diff) | |
download | ports-05d695f8c6f7e3200bbfdb8383dcf2a1c40df2d5.tar.gz ports-05d695f8c6f7e3200bbfdb8383dcf2a1c40df2d5.zip |
Notes
Diffstat (limited to 'devel/cgilib')
-rw-r--r-- | devel/cgilib/Makefile | 2 | ||||
-rw-r--r-- | devel/cgilib/distinfo | 6 | ||||
-rw-r--r-- | devel/cgilib/files/patch-cgi.c | 44 |
3 files changed, 15 insertions, 37 deletions
diff --git a/devel/cgilib/Makefile b/devel/cgilib/Makefile index f6c30ca9ae4a..3e89dd85bf76 100644 --- a/devel/cgilib/Makefile +++ b/devel/cgilib/Makefile @@ -6,7 +6,7 @@ # PORTNAME= cgilib -PORTVERSION= 0.6 +PORTVERSION= 0.7 CATEGORIES= devel www MASTER_SITES= http://www.infodrom.org/projects/cgilib/download/ \ http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs/ diff --git a/devel/cgilib/distinfo b/devel/cgilib/distinfo index df636d36beab..2d36f6e178a6 100644 --- a/devel/cgilib/distinfo +++ b/devel/cgilib/distinfo @@ -1,3 +1,3 @@ -MD5 (cgilib-0.6.tar.gz) = 392f00a4ce90426606efcb6ce705fd75 -SHA256 (cgilib-0.6.tar.gz) = b825a7ff413c02a758af1e54641d41f24099b9c54c4530b5e6edebe21d9640dd -SIZE (cgilib-0.6.tar.gz) = 25268 +MD5 (cgilib-0.7.tar.gz) = 2c7053f58dfb06f7a80a112797ed7e86 +SHA256 (cgilib-0.7.tar.gz) = 09b7d71bd1eea10bb404cd665fd5abe69282144ce01d96f2863c85fd42d5d692 +SIZE (cgilib-0.7.tar.gz) = 268783 diff --git a/devel/cgilib/files/patch-cgi.c b/devel/cgilib/files/patch-cgi.c index 4b1ced92e1f3..65900f6a5e34 100644 --- a/devel/cgilib/files/patch-cgi.c +++ b/devel/cgilib/files/patch-cgi.c @@ -1,33 +1,11 @@ ---- cgi.c.orig 2008-05-03 09:51:51.000000000 -0700 -+++ cgi.c 2008-05-03 09:52:40.000000000 -0700 -@@ -227,6 +227,30 @@ - return strdup (template); - } - -+ -+size_t -+strnlen(const char *s, size_t len) -+{ -+ size_t i; -+ -+ for(i = 0; i < len && s[i]; i++) -+ ; -+ return i; -+} -+ -+char * -+strndup(const char *old, size_t sz) -+{ -+ size_t len = strnlen (old, sz); -+ char *t = malloc(len + 1); -+ -+ if (t != NULL) { -+ memcpy (t, old, len); -+ t[len] = '\0'; -+ } -+ return t; -+} -+ - /* cgiReadMultipart() - * - * Decode multipart/form-data +--- cgi.c.orig 2010-05-19 18:38:27.000000000 +0400 ++++ cgi.c 2010-05-19 18:38:55.000000000 +0400 +@@ -641,7 +641,7 @@ s_cgi *cgiReadVariables () + free (result[k]->value); + free (value); + result[k]->value = sptr; +- cgiDebugOutput (1, "%s: %s", result[i]->name, result[i]->value); ++ cgiDebugOutput (1, "%s: %s", result[k]->name, result[k]->value); + } + } + cp = ++ip; |