X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fversion.c;h=c6239e0b2a1c7a267e00ba73f6fd17747d32f95a;hb=f4bf81ef6c0ba4f997b710a8ec5f346670974813;hp=7c4614f3b38ccca29fc06e70d171fe0d06dcf290;hpb=8af1b744fc580fb3e22ef54ba883d1ed67412b20;p=idzebra-moved-to-github.git diff --git a/util/version.c b/util/version.c index 7c4614f..c6239e0 100644 --- a/util/version.c +++ b/util/version.c @@ -1,8 +1,5 @@ -/* $Id: version.c,v 1.2 2007-08-27 17:40:10 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1995-2008 Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -29,6 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #endif +#include #include #include @@ -43,7 +41,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