(StringType_get_tag): Fix omission bug: Cast `DohMalloc()'

return value to `char *'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-05-11 06:16:37 +00:00
commit 7f1079a5e0

View file

@ -375,7 +375,7 @@ DOHString *StringType_get_tag(DOHString *s) {
c++; c++;
p = strchr(c, (int)'/'); p = strchr(c, (int)'/');
if (!p) return NULL; if (!p) return NULL;
rv = DohMalloc(p - c + 1); rv = (char *) DohMalloc (p - c + 1);
memmove(rv, c, p - c); memmove(rv, c, p - c);
rv[p - c] = 0; rv[p - c] = 0;
return rv; return rv;