The two functions `configureSerialPort` and `parseSerialControl` could probably be rewritten with StringRefs: if you have a look at the intialization of `MCserialcontrolsettings` you'll see it's composed of `<property>=<value>` statement separated by spaces, which can be parsed using MCString functions instead of `strchr` and `char*`.