[BACK]Return to res_query.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / resolv

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/resolv/res_query.c between version 1.12 and 1.13

version 1.12, 2009/04/12 17:07:17 version 1.13, 2009/10/24 21:37:57
Line 454  res_hostalias(const res_state statp, con
Line 454  res_hostalias(const res_state statp, con
         file = getenv("HOSTALIASES");          file = getenv("HOSTALIASES");
         if (file == NULL || (fp = fopen(file, "r")) == NULL)          if (file == NULL || (fp = fopen(file, "r")) == NULL)
                 return (NULL);                  return (NULL);
         setbuf(fp, NULL);  
         buf[sizeof(buf) - 1] = '\0';          buf[sizeof(buf) - 1] = '\0';
         while (fgets(buf, sizeof(buf), fp)) {          while (fgets(buf, sizeof(buf), fp)) {
                 for (cp1 = buf; *cp1 && !isspace((unsigned char)*cp1); ++cp1)                  for (cp1 = buf; *cp1 && !isspace((unsigned char)*cp1); ++cp1)

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

CVSweb <webmaster@jp.NetBSD.org>