Strange format bug
#5

Yes, they should.

OP, first of all make them strings. Second of all, you will still encounter bugs, due to using 256 as constant for length parameter, and you will overwrite not only "ReportedBy" and "ReportedReason", but random memory (well, starting with next slots of ReportInfo) after the ReportInfo array, up to 205 cells after it. That will cause a lot of mayhem. If you are using Zeex's compiler, just use sizeof, if standard compiler shipped with server, then you have to manually make sure the "len" parameter passed to format is exactly the same as your string dimensions.
Reply


Messages In This Thread
Strange format bug - by jasperschellekens - 05.01.2018, 19:12
Re: Strange format bug - by Misiur - 05.01.2018, 19:54
Re: Strange format bug - by jasperschellekens - 05.01.2018, 22:14
Re: Strange format bug - by TakeiT - 05.01.2018, 22:40
Re: Strange format bug - by Misiur - 05.01.2018, 23:51
Re: Strange format bug - by jasperschellekens - 06.01.2018, 00:24

Forum Jump:


Users browsing this thread: 2 Guest(s)