regedit: line_size is supposed to track a string length. That is it does not count the trailing '\0'. Fix a few places that got this wrong and rename it to line_len.