View Single Post
Frus
Senior Member
Join Date: Aug 2009
Old 01-30-2010 , 11:22   Re: #define string in string
Reply With Quote #14

Quote:
Originally Posted by p3tsin View Post
Its known but very much discouraged. You can easily overflow the buffer if the function returns an array larger than what you've allocated.
Can't you put a parameter in the function to specify the maximum length of the returned string?

EDIT: grey, isn't that function returning a single character, not a string?

Last edited by Frus; 01-30-2010 at 11:30.
Frus is offline