X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fhelp.c;h=e1e0345679fb1c55d10a6bda0261447a286b7b08;hb=HEAD;hp=228e493762390d5d22e125a86ad87b5aed2b3187;hpb=5cd55bddca592918f38deff675d05b650a71412e;p=xboard.git diff --git a/winboard/help.c b/winboard/help.c index 228e493..e1e0345 100644 --- a/winboard/help.c +++ b/winboard/help.c @@ -1,7 +1,7 @@ /* * help.h * - * Copyright 2009, 2010 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,7 @@ #include #include +#include "config.h" #include "help.h" FILE *debugFP; @@ -60,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,