bug 64070 changed estrdup to estrndup