Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Don't eat the escaped character when it's a bogus escape sequence.
Matthew Seaman committed 13 years ago
commit 732bf4c5a73fd97a40218aba03efbd68b19570c2
parent d0fcef2d1a2b692a2567a955d6064037428322cc
1 file changed +2 -3
modified libpkg/pkg_printf.c
@@ -1958,10 +1958,9 @@ process_escape(struct sbuf *sbuf, const char *f)
		f = read_oct_byte(sbuf, f);
		break;
	default:		/* If it's not a recognised escape,
-
				   pass it through unchanged */
+
				   leave f pointing at the escaped
+
				   character */
		sbuf_putc(sbuf, '\\');
-
		sbuf_putc(sbuf, *f);
-
		f++;
		break;
	}