Author |
Message |
Everguest Newbie
Joined: Jul 09 2006 Posts: 2 Offline
|
Posted: Sun Jul 09, 2006 9:37 pm Post subject: Possible asss error in persist.c |
 |
|
|
|
Shouldn't
memcpy(newkey+keylen, &suffix, sizeof(suffix)); |
be
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) |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: 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? _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Grelminar Creator of Asss
Joined: Feb 26 2003 Posts: 378 Offline
|
Posted: Sat Jul 29, 2006 8:17 pm Post subject: |
 |
|
|
|
Yes, it should be. I changed the declarations to byte*, instead of casting. |
|
Back to top |
|
 |
|