Fix bustage; replace strdup (no prototype on mac) with call to (existing!) xpidl_strdup.

This commit is contained in:
mccabe%netscape.com 2000-03-18 02:29:23 +00:00
Родитель a6ead832c1
Коммит 5a386a15b3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -350,12 +350,12 @@ interface(TreeState *state)
* Build a sample implementation template.
*/
if (strlen(className) >= 3 && className[2] == 'I') {
classNameImpl = strdup(className);
classNameImpl = xpidl_strdup(className);
if (!classNameImpl)
FAIL;
memmove(&classNameImpl[2], &classNameImpl[3], strlen(classNameImpl) - 2);
} else {
classNameImpl = strdup("_MYCLASS_");
classNameImpl = xpidl_strdup("_MYCLASS_");
if (!classNameImpl)
FAIL;
}