X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fhelp.c;h=b114497e2db0110a6c1bc581d36ff18b17e01146;hb=582aeb45129ac85b911614bee1b9cdf8ff0636b5;hp=228e493762390d5d22e125a86ad87b5aed2b3187;hpb=5cd55bddca592918f38deff675d05b650a71412e;p=xboard.git diff --git a/winboard/help.c b/winboard/help.c index 228e493..b114497 100644 --- a/winboard/help.c +++ b/winboard/help.c @@ -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,