From: Corinna Vinschen <[email protected]> The code handling \<oct> expressions (backslash with 3 octal digits) neglects to increment the pointer to the target string afterwards, thus the next character simply overwrites the character created from the \<oct> expression.
Signed-off-by: Corinna Vinschen <[email protected]> --- winsup/utils/gencat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/utils/gencat.c b/winsup/utils/gencat.c index f86b17b4a922..5b9e149739db 100644 --- a/winsup/utils/gencat.c +++ b/winsup/utils/gencat.c @@ -448,6 +448,7 @@ getmsg(int fd, char *cptr, char quote) *tptr += (*cptr - '0'); ++cptr; } + ++tptr; } else { warning(cptr, "unrecognized escape sequence"); } -- 2.52.0
