summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-05-17 04:20:58 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-05-17 04:20:58 +0000
commit209b6c1af7093fd0990552e7288f05f33cd1b127 (patch)
tree9b7e8534343dd9d8e6aaed221257f7f652f19727
parent4ee0e56440755277a0db257324f267648c9a0265 (diff)
downloadc-ares-209b6c1af7093fd0990552e7288f05f33cd1b127.tar.gz
c-ares-209b6c1af7093fd0990552e7288f05f33cd1b127.tar.bz2
c-ares-209b6c1af7093fd0990552e7288f05f33cd1b127.zip
More of the same
-rw-r--r--ares_getnameinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c
index 4eeed94..23a5c79 100644
--- a/ares_getnameinfo.c
+++ b/ares_getnameinfo.c
@@ -312,7 +312,8 @@ static char *ares_striendstr(const char *s1, const char *s2)
return NULL;
/* Jump to the end of s1 minus the length of s2 */
- c1 = (const char *)c1_begin = s1+s1_len-s2_len;
+ c1_begin = s1+s1_len-s2_len;
+ c1 = (const char *)c1_begin;
c2 = s2;
while (c2 < s2+s2_len)
{