$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,"", objinfo->objname, b); + snprintf(buffer, sizeof(buffer), "", objinfo->objname, b); return NewString(buffer); } else { return NewString(obj);