зеркало из https://github.com/mozilla/gecko-dev.git
Fix bustage; replace strdup (no prototype on mac) with call to (existing!) xpidl_strdup.
This commit is contained in:
Родитель
a6ead832c1
Коммит
5a386a15b3
|
@ -350,12 +350,12 @@ interface(TreeState *state)
|
||||||
* Build a sample implementation template.
|
* Build a sample implementation template.
|
||||||
*/
|
*/
|
||||||
if (strlen(className) >= 3 && className[2] == 'I') {
|
if (strlen(className) >= 3 && className[2] == 'I') {
|
||||||
classNameImpl = strdup(className);
|
classNameImpl = xpidl_strdup(className);
|
||||||
if (!classNameImpl)
|
if (!classNameImpl)
|
||||||
FAIL;
|
FAIL;
|
||||||
memmove(&classNameImpl[2], &classNameImpl[3], strlen(classNameImpl) - 2);
|
memmove(&classNameImpl[2], &classNameImpl[3], strlen(classNameImpl) - 2);
|
||||||
} else {
|
} else {
|
||||||
classNameImpl = strdup("_MYCLASS_");
|
classNameImpl = xpidl_strdup("_MYCLASS_");
|
||||||
if (!classNameImpl)
|
if (!classNameImpl)
|
||||||
FAIL;
|
FAIL;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче