summaryrefslogtreecommitdiffstats
path: root/vncauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'vncauth.c')
-rw-r--r--vncauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncauth.c b/vncauth.c
index 64e8cbe..fb2c98e 100644
--- a/vncauth.c
+++ b/vncauth.c
@@ -63,7 +63,7 @@ vncEncryptAndStorePasswd(char *passwd, char *fname)
/* windows security sux */
#ifndef WIN32
- fchmod(fp, S_IRUSR|S_IWUSR);
+ fchmod(fileno(fp), S_IRUSR|S_IWUSR);
#endif
/* pad password with nulls */