help with sscanf
#8

Ok, now this is just weird - MAX_PLAYER_NAME is 24, yup? So s[25] should suffice, yup? BUT current code causes runtime error for me - why? No idea - probably stack corruption or something. So I changed it to 26 - no dice, owner wasn't loaded. So I tried 24, and guess what:



Now - it works, but I have no idea what will happen if the name will be 24 characters long (so in fact 24 + \0 NUL).
Reply


Messages In This Thread
help with sscanf - by BlackRaven - 01.02.2013, 16:06
Re: help with sscanf - by BlackRaven - 01.02.2013, 16:52
Re: help with sscanf - by BlackRaven - 02.02.2013, 07:16
Re: help with sscanf - by BlackRaven - 02.02.2013, 07:30
Re: help with sscanf - by BlackRaven - 02.02.2013, 09:36
Re: help with sscanf - by Misiur - 02.02.2013, 09:47
Re: help with sscanf - by BlackRaven - 02.02.2013, 09:56
Re: help with sscanf - by Misiur - 02.02.2013, 10:29
Re: help with sscanf - by BlackRaven - 02.02.2013, 11:04

Forum Jump:


Users browsing this thread: 1 Guest(s)