2006-10-18 11:41:06 -04:00
|
|
|
$OpenBSD: patch-src_misc_c,v 1.2 2006/10/18 15:41:06 naddy Exp $
|
|
|
|
--- src/misc.c.orig Mon Aug 28 01:48:49 2006
|
|
|
|
+++ src/misc.c Wed Oct 18 16:25:00 2006
|
|
|
|
@@ -481,7 +481,7 @@ const char *st_version()
|
2005-07-02 12:27:56 -04:00
|
|
|
{
|
|
|
|
static char versionstr[20];
|
|
|
|
|
2006-10-18 11:41:06 -04:00
|
|
|
- sprintf(versionstr, "%d.%d.%d",
|
|
|
|
+ snprintf(versionstr, sizeof(versionstr), "%d.%d.%d",
|
2005-07-02 12:27:56 -04:00
|
|
|
(ST_LIB_VERSION_CODE & 0xff0000) >> 16,
|
|
|
|
(ST_LIB_VERSION_CODE & 0x00ff00) >> 8,
|
|
|
|
(ST_LIB_VERSION_CODE & 0x0000ff));
|