[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[JDEV] Requested change to xpt.c



	I have a bit of a problem with xpt.c.  Visual C++ complains about the str
var in expat_charData.  It wants the char dec to be a constant:

---
void expat_charData(void *userData, const char *s, int len)
{
	xptpool *xp = userData;
	xpt *x;
	char str[len + 1];
---

	Could we change the

---
	char str[len + 1];
---

	to

---
	char *str;
	str = malloc(len + 1);
---


--
Thomas Charron
United Parcel Service
Northeast Region
"Moving at the speed of a T3 Trunk Line!"