X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fhelp.c;h=e1e0345679fb1c55d10a6bda0261447a286b7b08;hb=HEAD;hp=d10f9ab9d0d3562662d1729936383f0179cfde76;hpb=c62090daec3ffb14de3ca2356342406e8139ddfd;p=xboard.git diff --git a/winboard/help.c b/winboard/help.c index d10f9ab..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,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,