Projects STRLCPY Vault-8-Hive Commits 54c338d5
🤬
  • Fix command line parsing of DNS server addresses.

  • Loading...
  • User #142 committed 9 years ago
    54c338d5
    1 parent 875492c1
  • ■ ■ ■ ■ ■ ■
    server/main.c
    skipped 317 lines
    318 318   fprintf(stderr, "%s\n", oe4);
    319 319   return 6;
    320 320   }
    321  - memcpy(beaconInfo.dns[0], dns, strlen(dns));
     321 + strcpy(beaconInfo.dns[0], dns);
    322 322   } else {
    323 323   beaconInfo.dns[0][0] = '\0';
    324 324   fprintf(stderr, "%s\n", sdf); // Parameter missing
    skipped 6 lines
    331 331   fprintf(stderr, "%s\n", oe4);
    332 332   return 6;
    333 333   }
    334  - memcpy(beaconInfo.dns[1], dns, strlen(dns));
     334 + strcpy(beaconInfo.dns[1], dns);
    335 335   } else
    336 336   beaconInfo.dns[1][0] = '\0';
    337 337   }
    skipped 203 lines
Please wait...
Page is in error, reload to recover