14.02.2014, 13:31
I really lost the touch with strtok a long time ago, is cmd an array style variable? If so increase it's size.
To ultimately get rid of such errors I recommend upgrading the whole script to sscanf, which is incredibly easy to use and makes such codes trivial.
(Not to mention it's efficency and speed)
To ultimately get rid of such errors I recommend upgrading the whole script to sscanf, which is incredibly easy to use and makes such codes trivial.
(Not to mention it's efficency and speed)