Strings doesn't work in enums
#2

strcat has a third, optional, parameter called maxlength which by default is set to sizeof(dest). However, you can't get the size of an array element and thus that code is invalid. You must supply the length manually. The same applies to cache_get_field.
Reply


Messages In This Thread
Strings doesn't work in enums - by Kirollos - 05.07.2013, 19:56
Re: Strings doesn't work in enums - by Vince - 05.07.2013, 20:03
Re: Strings doesn't work in enums - by Kirollos - 05.07.2013, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)