aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/src/GetDflt.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/src/GetDflt.c')
-rw-r--r--nx-X11/lib/src/GetDflt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/lib/src/GetDflt.c b/nx-X11/lib/src/GetDflt.c
index c2cc1da47..0f6b5f6fd 100644
--- a/nx-X11/lib/src/GetDflt.c
+++ b/nx-X11/lib/src/GetDflt.c
@@ -141,7 +141,7 @@ InitDefaults(
if (dpy->xdefaults == NULL) {
const char *slashDotXdefaults = "/.Xdefaults";
- (void) GetHomeDir (fname, PATH_MAX - strlen (slashDotXdefaults) - 1);
+ (void) GetHomeDir (fname, (int) (PATH_MAX - strlen (slashDotXdefaults) - 1));
(void) strcat (fname, slashDotXdefaults);
xdb = XrmGetFileDatabase (fname);
} else {
@@ -152,9 +152,9 @@ InitDefaults(
const char *slashDotXdefaultsDash = "/.Xdefaults-";
int len;
- (void) GetHomeDir (fname, PATH_MAX - strlen (slashDotXdefaultsDash) - 1);
+ (void) GetHomeDir (fname, (int) (PATH_MAX - strlen (slashDotXdefaultsDash) - 1));
(void) strcat (fname, slashDotXdefaultsDash);
- len = strlen (fname);
+ len = (int) strlen (fname);
(void) _XGetHostname (fname+len, PATH_MAX-len);
xenv = fname;
}