/*\r
* help.h\r
*\r
- * Copyright 2009 Free Software Foundation, Inc.\r
+ * Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc.\r
* ------------------------------------------------------------------------\r
*\r
* GNU XBoard is free software: you can redistribute it and/or modify\r
\r
#include <windows.h>\r
#include <stdio.h>\r
+#include "config.h"
#include "help.h"
\r
FILE *debugFP;\r
siStartInfo.hStdOutput = NULL;\r
siStartInfo.hStdError = debugFP;\r
\r
- sprintf(buf, "Hh.exe %s", helpFile);\r
+ snprintf(buf, sizeof(buf)/sizeof(buf[0]),"Hh.exe %s", helpFile);\r
\r
// ignore the other parameters; just start the viewer with the help file\r
if( CreateProcess(NULL,\r