summaryrefslogtreecommitdiffstats
path: root/vncauth.c
diff options
context:
space:
mode:
authordscho <dscho>2002-08-31 14:13:50 +0000
committerdscho <dscho>2002-08-31 14:13:50 +0000
commitb34beb1b22a53046fd09f872e6541aea8e166f7f (patch)
treee2a72721ab48b735f8ae1d3bb8684dd991af3d4b /vncauth.c
parent0024d7472768635915ee6cc511fc258c121b9b9c (diff)
downloadlibtdevnc-b34beb1b.tar.gz
libtdevnc-b34beb1b.zip
socket via proxy gets options set, compiler warning fixes
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 */