Server Help

ASSS Questions - Possible asss error in persist.c

Everguest - Sun Jul 09, 2006 9:37 pm
Post subject: Possible asss error in persist.c
Shouldn't

Code: Show/Hide
memcpy(newkey+keylen, &suffix, sizeof(suffix));


be

Code: Show/Hide
memcpy((char *)newkey+keylen, &suffix, sizeof(suffix));



(Not all compilers assume void * equals char *, and I don't think it's in the standard either)
Dr Brain - Sun Jul 09, 2006 10:41 pm
Post subject:
I know it's not in the standard, but I'm curious as to which compilers assume it to be something else?
Grelminar - Sat Jul 29, 2006 8:17 pm
Post subject:
Yes, it should be. I changed the declarations to byte*, instead of casting.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group