diff options
Diffstat (limited to 'ares_gethostbyaddr.c')
-rw-r--r-- | ares_gethostbyaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyaddr.c b/ares_gethostbyaddr.c index 0c832bb..85862e2 100644 --- a/ares_gethostbyaddr.c +++ b/ares_gethostbyaddr.c @@ -215,7 +215,7 @@ static int file_lookup(struct ares_addr *addr, struct hostent **host) return ARES_ENOTFOUND; #endif - fp = fopen(PATH_HOSTS, "re"); + fp = fopen(PATH_HOSTS, "r"); if (!fp) { error = ERRNO; |