* Fix LLVM warnings (HEAD -> master, origin/master, origin/HEAD) * Ignore shared library * Only build libraries if needed * Make configure executable * Add configure script * Update ignored files * Add getpeerip, setfork functions * Make it compile under Windows * Document Cygwin * Changes to compile with a cygwin compiler. * Make it compile with gcc-4 * Fix setfork return type. * Conditionally compile funcitonality that is not part of WIN32. * _exit is a lot more efficient than exit. * Add query string in the log file. * Implement forking server. Add swill_setfork() function. * Add swill_getquerystring function. * Fix SVG mime type. See http://www.mozilla.org/projects/svg/faq.html * Added logging statements for errors. * Add application/svg type for the .svg suffix. * Added swill_getrlen and swill_getrequest functions. * Added conditional compilation directive. * Added char *swill_getpeerip(const char *name) function. * Use scanf %p for portability with 64 bit architectures. * WIN32 port. pkgsrc changes: * Libtoolize to fix build on OS X (and perhaps others).
15 lines
572 B
Text
15 lines
572 B
Text
$NetBSD: patch-Source_Objects_base_c,v 1.2 2016/08/11 12:51:15 schmonz Exp $
|
|
|
|
Use correct printf format. While on the same line, use snprintf.
|
|
|
|
--- Source/Objects/base.c.orig 2016-01-16 13:37:22.000000000 +0000
|
|
+++ Source/Objects/base.c
|
|
@@ -94,7 +94,7 @@ DohStr(const DOH *obj) {
|
|
if (objinfo->doh_str) {
|
|
return (objinfo->doh_str)(b);
|
|
}
|
|
- sprintf(buffer,"<Object '%s' at %p>", objinfo->objname, b);
|
|
+ snprintf(buffer, sizeof(buffer), "<Object '%s' at %p>", objinfo->objname, b);
|
|
return NewString(buffer);
|
|
} else {
|
|
return NewString(obj);
|