Also fixed a potential core/memory corruption in dticon.
*/
/* $XConsortium: regerror.c /main/3 1996/06/19 17:13:36 drk $ */
#include <stdio.h>
+#include <stdlib.h>
void
tpt_regerror(s)
************************************<+>*************************************/
/* System Include Files */
-
+#include <stdlib.h>
+#include <stdio.h>
#include <Xm/Xm.h>
#include <Xm/XmP.h>
****************************************************************************
************************************<+>*************************************/
+#include <stdlib.h>
+#include <stdio.h>
+
#include <Xm/Xm.h>
#include <Xm/RowColumn.h>
#include <Xm/PushB.h>
TurnOnHourGlass(topLevel);
- switch ((int)clientData)
+ switch ((long)clientData)
{
case CREATE_SAMPLE:
TurnOnHourGlass(topLevel);
- switch ((int)clientData)
+ switch ((long)clientData)
{
case CHANGE_CONTENT:
/* Determine which help button was activated and display the
* appropriate help information */
- switch ((int)clientData)
+ switch ((long)clientData)
{
case HELP_ON_ITEM:
while (!XtIsSubclass(widget, applicationShellWidgetClass))
widget = XtParent(widget);
- status = DtHelpReturnSelectedWidgetId(widget, NULL, &selWidget);
+ status = DtHelpReturnSelectedWidgetId(widget, 0, &selWidget);
switch ((int)status)
{
* to determine how the lines are drawn.
*/
#include <stdio.h>
+#include <stdlib.h>
#include <locale.h>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
if (options.debugHelpPrint)
{
XrmPutFileDatabase(appDB,"db.dthelpprint"); /* dump rsrc for debug */
- system("cat db.dthelpprint|fgrep -i print");
+ system("/bin/cat db.dthelpprint|/bin/fgrep -i print");
}
/****************************************
Copyright 1992 Hewlett-Packard Co.
*/
+#include <string.h>
#include "basic.h"
#include "trie.h"
#include "cont.h"
Copyright 1992 Hewlett-Packard Co.
*/
+#include <string.h>
#include "basic.h"
#include "trie.h"
#include "cont.h"
** implied warranty.
**
******************************************************************************/
+#include <stdio.h>
+
#include <Xm/Xm.h>
#include "externals.h"
#include "main.h"
int i, j;
int mask_needed;
Boolean SUN;
- char *base_name, *suffix, fname[256], *tmp, *tmp2, *vend;
+ char *base_name, *suffix, fname[MAXPATHLEN], *tmp, *tmp2, *vend;
Pixmap scratch_pix;
XImage *scratch_shape, *scratch_mask;
struct stat statbuf; /* Information on a file. */
netfile = tt_host_file_netfile(fnameIn, tmp+1);
localfile = tt_netfile_file(netfile);
- strncpy(fname, localfile, MAXPATHLEN);
+ strncpy(fname, localfile, MAXPATHLEN - 1);
+ fname[MAXPATHLEN - 1] = 0;
tmp[0] = ':';
tt_free(netfile);
# define ctime _huh_ctime
-
+# include <stdlib.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <string.h>