X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=installer%2Farchive.c;h=050284558e5c747a0569544576483549c1c9bdcc;hp=c6aaa019fbaf597b08460285bb50247791545360;hb=fc713269e9d26d1be92f70e1ff0d508c94a65dba;hpb=395891218440cf44d8f57a2e850011a7dc8c9d75 diff --git a/installer/archive.c b/installer/archive.c index c6aaa01..0502845 100644 --- a/installer/archive.c +++ b/installer/archive.c @@ -1,8 +1,8 @@ /* archive.c - Part of the swftools installer. + Part of the rfx installer. - Copyright (c) 2004 Matthias Kramm + Copyright (c) 2004-2008 Matthias Kramm This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,7 +46,7 @@ static void msg(char*format, ...) if(!verbose) return; va_start(arglist, format); - vsprintf(buf, format, arglist); + vsnprintf(buf, sizeof(buf)-1, format, arglist); va_end(arglist); l = strlen(buf); while(l && buf[l-1]=='\n') {