cni converting String args[]

Andi Vajda andi@osafoundation.org
Fri Dec 10 17:58:00 GMT 2004


> You need memory to put this in:
>
>    len = JvGetStringUTFLength (argsElements[i]);
>    char s[len];
>    JvGetStringUTFRegion(argsElements[i], 0, argsElements[i]->length(), s);
>    s[len] = 0;

Shouldn't that be: char s[len + 1]; ?

Andi..



More information about the Java mailing list