From: Adam Dickmeiss Date: Mon, 27 Aug 2007 17:43:21 +0000 (+0000) Subject: Using yaz_snprintf rather than sprintf X-Git-Tag: ZEBRA.2.0.16~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=f63c1ba61f101f81fc16b7a9ea0b1fbc4e6cae16;p=idzebra-moved-to-github.git Using yaz_snprintf rather than sprintf --- diff --git a/util/version.c b/util/version.c index 7c4614f..0daaf9e 100644 --- a/util/version.c +++ b/util/version.c @@ -1,4 +1,4 @@ -/* $Id: version.c,v 1.2 2007-08-27 17:40:10 adam Exp $ +/* $Id: version.c,v 1.3 2007-08-27 17:43:21 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -29,6 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #endif +#include #include #include @@ -43,7 +44,7 @@ void zebra_get_version(char *version_str, char *sys_str) #ifdef WIN32 strcpy(sys_str, "win32"); #ifdef _MSC_VER - sprintf(sys_str+strlen(sys_str), "; mscver %lu", + yaz_snprintf(sys_str+strlen(sys_str), 25, "; mscver %lu", (unsigned long) _MSC_VER); #endif #endif