Add a "const" to the argument of dupstr() so that GCC doesn't complain when