Interesting. Compiled that code and I get the following when running the resulting binary.
/var/opt/prj/wget$ strdup_test 20001448 I appear to have a functioning wget binary with the strdup change to config.h, but I'm curious what you think the other causes of this problem could be.