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 48e5f6e..64e8cbe 100644
--- a/vncauth.c
+++ b/vncauth.c
@@ -63,7 +63,7 @@ vncEncryptAndStorePasswd(char *passwd, char *fname)
/* windows security sux */
#ifndef WIN32
- chmod(fname, S_IRUSR|S_IWUSR);
+ fchmod(fp, S_IRUSR|S_IWUSR);
#endif
/* pad password with nulls */