library.
Martin Schulze <joey@infodrom.org>
+
- Design, Implementation, Maintenance
Mikko Torni <mtorni@mail.freenet.hut.fi>
Phil Brooke <pjb@scm.tees.ac.uk>
- Allow cookies without regular CGI POST/GET variables
+
+Michael Petullo <mike@flyn.org>
+
+ - Convert to GNU autotools and wrap strncpy() accordingly
#include <cgi.h>
#include "aux.h"
+#ifndef HAVE_STRNDUP
+char *strndup(const char *s, size_t n);
+#endif
+
char *cgiHeaderString = NULL;
char *cgiType = NULL;
}
}
+#ifndef HAVE_STRNDUP
+char *strndup(const char *s, size_t n) {
+ char *fnval;
+
+ if ((fnval = (char *)malloc (n + 1)) == NULL)
+ return NULL;
+ strncpy(fnval, s, n);
+ fnval[n] = '\0';
+ return fnval;
+}
+#endif
+
/*
* Local variables:
* c-indent-level: 4