X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fhelp.c;h=8d8f252247ff2849b43b326345d006828ff51d66;hb=37171a1530eef8fbc24f3b656397d91164c43d61;hp=d10f9ab9d0d3562662d1729936383f0179cfde76;hpb=c62090daec3ffb14de3ca2356342406e8139ddfd;p=xboard.git diff --git a/winboard/help.c b/winboard/help.c index d10f9ab..8d8f252 100644 --- a/winboard/help.c +++ b/winboard/help.c @@ -1,7 +1,7 @@ /* * help.h * - * Copyright 2009 Free Software Foundation, Inc. + * Copyright 2009, 2010, 2011 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -60,7 +60,7 @@ HtmlHelp( HWND hwnd, LPCSTR helpFile, UINT action, DWORD_PTR data ) siStartInfo.hStdOutput = NULL; siStartInfo.hStdError = debugFP; - sprintf(buf, "Hh.exe %s", helpFile); + snprintf(buf, sizeof(buf)/sizeof(buf[0]),"Hh.exe %s", helpFile); // ignore the other parameters; just start the viewer with the help file if( CreateProcess(NULL,