X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fhelp.c;h=e1e0345679fb1c55d10a6bda0261447a286b7b08;hb=HEAD;hp=94d0fd92bc9926e8f36a9dda2ddee8a6c67cecd7;hpb=3cc03b735ac2bff48a80937827a2ddcf22878959;p=xboard.git diff --git a/winboard/help.c b/winboard/help.c index 94d0fd9..e1e0345 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, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -24,6 +24,8 @@ #include #include +#include "config.h" +#include "help.h" FILE *debugFP; @@ -59,7 +61,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,