27.04.2014, 17:10
I think I've read a thread few years ago saying that when "cmd" had size of 128 and used strtok, it gave the errors you got. By doing it 256 fixed that - I'm not sure if that's the solution so I strongly recommend you NOT to use strtok. Use sscanf instead. Also dcmd and strcmp are both bad. ZCMD and y_commands are better and very fast! You should really consider of changing them (I'm talking about that awful combination of strtok and strcmp for commands).

