Skip to content

Commit

Permalink
Update sys_net.c
Browse files Browse the repository at this point in the history
TABs in /etc/resolv.conf have made this file unreadable. Fixed
  • Loading branch information
IceNinjaman authored Jan 8, 2017
1 parent a8a6b1a commit 574e957
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -4155,7 +4155,7 @@ int GetDNSAddresses(struct sockaddr_storage *sin, int maxcount)
{
linep = line;
//Remove whitespace
while(*linep == ' ')
while(*linep == ' ' || *linep == '\t')
{
++linep;
}
Expand All @@ -4166,7 +4166,7 @@ int GetDNSAddresses(struct sockaddr_storage *sin, int maxcount)
}
linep += 11;
//Remove whitespace again
while(*linep == ' ')
while(*linep == ' ' || *linep == '\t')
{
++linep;
}
Expand Down Expand Up @@ -4833,4 +4833,4 @@ qboolean NET_ResolveNonBlocking(const char *domain, struct sockaddr_storage *out
qboolean NET_ResolveBlocking(const char *domain, struct sockaddr_storage *outaddr, sa_family_t family, char* errormessage1k)
{
return NET_ResolveInternal(domain, outaddr, family, qfalse, errormessage1k);
}
}

0 comments on commit 574e957

Please sign in to comment.