Files
pkgsrc-ng/www/swill/patches/patch-Source_Objects_base_c
2016-11-18 22:39:22 +01:00

16 lines
572 B
Plaintext

$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);