[PATCH] riched20: Properly handle \0 inside text and add test