X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fhelp.c;h=b114497e2db0110a6c1bc581d36ff18b17e01146;hb=e80c98c04e951e5026a24531cd6316be962636b9;hp=228e493762390d5d22e125a86ad87b5aed2b3187;hpb=0ea1b434ac6becf79c75d85ba27de5b89666a7c3;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,