~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_gethwaddr.c

Removed references to strmov and strnmov

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    goto err;
90
90
 
91
91
  memset(&ifr, 0, sizeof(ifr));
92
 
  strnmov(ifr.ifr_name, "eth0", sizeof(ifr.ifr_name) - 1);
 
92
  stpncpy(ifr.ifr_name, "eth0", sizeof(ifr.ifr_name) - 1);
93
93
 
94
94
  do {
95
95
    if (ioctl(fd, SIOCGIFHWADDR, &ifr) >= 0)