diff options
Diffstat (limited to 'vncauth.c')
-rw-r--r-- | vncauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -118,10 +118,10 @@ rfbDecryptPasswdFromFile(char *fname) { FILE *fp; int i, ch; - unsigned char *passwd = (unsigned char *)malloc(9); - if ((fp = fopen(fname,"r")) == NULL) return NULL; + unsigned char *passwd = (unsigned char *)malloc(9); + for (i = 0; i < 8; i++) { ch = getc(fp); if (ch == EOF) { |