#include <X11/Xaw/Label.h>
#include <X11/Xaw/Cardinals.h>
-#include "selfile.h"
#include "xstat.h"
-
-/* added missing prototypes */
-extern void SFdrawList(int,int);
-extern void SFinitFont();
-extern void SFcreateGC();
-extern int SFchdir(char *);
-extern void SFupdatePath();
-extern void SFsetText(char *);
-extern char SFstatChar(struct stat*);
+#include "selfile.h"
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
XtAddEventHandler(selFileLists[n], LeaveWindowMask, False,
SFleaveList, (XtPointer)(intptr_t) n);
XtAddEventHandler(selFileLists[n], PointerMotionMask, False,
- SFmotionList, (XtPointer)(intptr_t) n);
+ (XtEventHandler) SFmotionList, (XtPointer)(intptr_t) n);
XtAddEventHandler(selFileLists[n], ButtonPressMask, False,
SFbuttonPressList, (XtPointer)(intptr_t) n);
XtAddEventHandler(selFileLists[n], ButtonReleaseMask, False,
XtSetArg(arglist[i], XtNstring, filter); i++;
XtSetValues(filterField, arglist, i);
- safeStrCpy(SFfilterBuffer, filter, MAXPATHLEN);
- safeStrCpy(SFlastPath, SFtextBuffer, MAXPATHLEN); // remember for cancel
+ strncpy(SFfilterBuffer, filter, MAXPATHLEN-1);
+ strncpy(SFlastPath, SFtextBuffer, MAXPATHLEN-1); // remember for cancel
SFpositionWidget(selFile);
XtMapWidget(selFile);