mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Update to 0.7;
Fix segfault when using a HTML 4.0 <FORM>'s element <SELECT> with attribute MULTIPLE. PR: 146618 Submitted by: Byron Young <bkyoung74q9@yahoo.com>
This commit is contained in:
parent
ad5b61da8b
commit
05d695f8c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=254598
@ -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/
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user