[BACK]Return to res_init.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_init.c between version 1.1 and 1.2

version 1.1, 2004/05/20 17:18:55 version 1.2, 2004/05/20 17:41:00
Line 542  res_setoptions(res_state statp, const ch
Line 542  res_setoptions(res_state statp, const ch
                                 goto skip;                                  goto skip;
                         cp += sizeof("nibble:") - 1;                          cp += sizeof("nibble:") - 1;
                         i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix) - 1);                          i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix) - 1);
                         strncpy(ext->nsuffix, cp, i);                          strncpy(ext->nsuffix, cp, (size_t)i);
                         ext->nsuffix[i] = '\0';                          ext->nsuffix[i] = '\0';
                 }                  }
                 else if (!strncmp(cp, "nibble2:", sizeof("nibble2:") - 1)) {                  else if (!strncmp(cp, "nibble2:", sizeof("nibble2:") - 1)) {
Line 550  res_setoptions(res_state statp, const ch
Line 550  res_setoptions(res_state statp, const ch
                                 goto skip;                                  goto skip;
                         cp += sizeof("nibble2:") - 1;                          cp += sizeof("nibble2:") - 1;
                         i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix2) - 1);                          i = MIN(strcspn(cp, " \t"), sizeof(ext->nsuffix2) - 1);
                         strncpy(ext->nsuffix2, cp, i);                          strncpy(ext->nsuffix2, cp, (size_t)i);
                         ext->nsuffix2[i] = '\0';                          ext->nsuffix2[i] = '\0';
                 }                  }
                 else if (!strncmp(cp, "v6revmode:", sizeof("v6revmode:") - 1)) {                  else if (!strncmp(cp, "v6revmode:", sizeof("v6revmode:") - 1)) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb <webmaster@jp.NetBSD.org>