fixed a couple possible buffer overflows, fixed buggy handling of some odd combinations of comments, quoted strings, etc, extracted some duplicated code into a function, and marked several other possible buffer overflows to fix later
fixed a couple possible buffer overflows, fixed buggy handling of some odd combinations of comments, quoted strings, etc, extracted some duplicated code into a function, and marked several other possible buffer overflows to fix later

RunningLight/machinekit,ikcalB/linuxcnc-mirror,cnc-club/linuxcnc,araisrobo/machinekit,narogon/linuxcnc,araisrobo/machinekit,RunningLight/machinekit,cnc-club/linuxcnc,unseenlaser/linuxcnc,mhaberler/machinekit,kinsamanka/machinekit,strahlex/machinekit,ArcEye/MK-Qt5,araisrobo/machinekit,kinsamanka/machinekit,ArcEye/machinekit-testing,unseenlaser/machinekit,cdsteinkuehler/linuxcnc,aschiffler/linuxcnc,bmwiedemann/linuxcnc-mirror,ArcEye/machinekit-testing,ArcEye/MK-Qt5,unseenlaser/machinekit,kinsamanka/machinekit,strahlex/machinekit,kinsamanka/machinekit,cdsteinkuehler/MachineKit,bobvanderlinden/machinekit,EqAfrica/machinekit,aschiffler/linuxcnc,narogon/linuxcnc,ianmcmahon/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,strahlex/machinekit,cnc-club/linuxcnc,Cid427/machinekit,yishinli/emc2,bobvanderlinden/machinekit,kinsamanka/machinekit,araisrobo/machinekit,ArcEye/MK-Qt5,Cid427/machinekit,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/MachineKit,yishinli/emc2,ArcEye/machinekit-testing,ArcEye/machinekit-testing,ianmcmahon/linuxcnc-mirror,narogon/linuxcnc,araisrobo/machinekit,unseenlaser/linuxcnc,ikcalB/linuxcnc-mirror,narogon/linuxcnc,unseenlaser/machinekit,strahlex/machinekit,unseenlaser/machinekit,unseenlaser/machinekit,mhaberler/machinekit,Cid427/machinekit,ArcEye/MK-Qt5,yishinli/emc2,cdsteinkuehler/linuxcnc,unseenlaser/linuxcnc,bmwiedemann/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,Cid427/machinekit,unseenlaser/linuxcnc,araisrobo/machinekit,mhaberler/machinekit,cdsteinkuehler/MachineKit,ikcalB/linuxcnc-mirror,bobvanderlinden/machinekit,araisrobo/linuxcnc,ikcalB/linuxcnc-mirror,cdsteinkuehler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,ArcEye/machinekit-testing,jaguarcat79/ILC-with-LinuxCNC,mhaberler/machinekit,ArcEye/MK-Qt5,strahlex/machinekit,EqAfrica/machinekit,bobvanderlinden/machinekit,ianmcmahon/linuxcnc-mirror,EqAfrica/machinekit,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,narogon/linuxcnc,cnc-club/linuxcnc,bobvanderlinden/machinekit,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/MachineKit,kinsamanka/machinekit,EqAfrica/machinekit,aschiffler/linuxcnc,Cid427/machinekit,RunningLight/machinekit,unseenlaser/machinekit,bobvanderlinden/machinekit,RunningLight/machinekit,cdsteinkuehler/MachineKit,unseenlaser/machinekit,cnc-club/linuxcnc,EqAfrica/machinekit,ianmcmahon/linuxcnc-mirror,cnc-club/linuxcnc,EqAfrica/machinekit,ArcEye/machinekit-testing,ArcEye/MK-Qt5,cdsteinkuehler/linuxcnc,mhaberler/machinekit,ArcEye/MK-Qt5,jaguarcat79/ILC-with-LinuxCNC,bobvanderlinden/machinekit,aschiffler/linuxcnc,RunningLight/machinekit,jaguarcat79/ILC-with-LinuxCNC,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,ArcEye/MK-Qt5,aschiffler/linuxcnc,ArcEye/machinekit-testing,araisrobo/linuxcnc,EqAfrica/machinekit,RunningLight/machinekit,araisrobo/linuxcnc,ianmcmahon/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,unseenlaser/machinekit,Cid427/machinekit,ArcEye/machinekit-testing,araisrobo/linuxcnc,bmwiedemann/linuxcnc-mirror,araisrobo/linuxcnc,cdsteinkuehler/MachineKit,cnc-club/linuxcnc,ikcalB/linuxcnc-mirror,araisrobo/machinekit,strahlex/machinekit,cdsteinkuehler/linuxcnc,kinsamanka/machinekit,mhaberler/machinekit,RunningLight/machinekit,EqAfrica/machinekit,yishinli/emc2,bobvanderlinden/machinekit,mhaberler/machinekit,araisrobo/machinekit,Cid427/machinekit,unseenlaser/linuxcnc,strahlex/machinekit,Cid427/machinekit,RunningLight/machinekit,mhaberler/machinekit,kinsamanka/machinekit,cdsteinkuehler/linuxcnc,araisrobo/machinekit