Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Possible asss error in persist.c

 
Post new topic   Reply to topic Printable version
 View previous topic  Possible asss error in objects.c Post :: Post ASSS Help  View next topic  
Author Message
Everguest
Newbie


Joined: Jul 09 2006
Posts: 2
Offline

PostPosted: Sun Jul 09, 2006 9:37 pm    Post subject: Possible asss error in persist.c Reply to topic Reply with quote

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)
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sun Jul 09, 2006 10:41 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Grelminar
Creator of Asss


Joined: Feb 26 2003
Posts: 378
Offline

PostPosted: Sat Jul 29, 2006 8:17 pm    Post subject: Reply to topic Reply with quote

Yes, it should be. I changed the declarations to byte*, instead of casting.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 355 page(s) served in previous 5 minutes.

phpBB Created this page in 0.445849 seconds : 28 queries executed (95.5%): GZIP compression disabled