dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / DmxPrintSetup.C
index 8aa00e69cfbf360f845323228cfb546ae29d4520..9c9f74884aee21f4bcb39ad2a612ac27bf4145d7 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -116,7 +116,7 @@ DmxPrintSetup::DmxPrintSetup (
 
     _filename = (char*) malloc(MAXPATHLEN+1);
     if (NULL != _filename)
-      sprintf(_filename, "%s/dtmail_messages.ps", getenv("HOME"));
+      snprintf(_filename, MAXPATHLEN+1, "%s/dtmail_messages.ps", getenv("HOME"));
 
     _printCB = printCB;
     _cancelCB = cancelCB;