This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix off-by one error in a2p
authorPhilip Guenther <guenther@openbsd.org>
Fri, 18 Oct 2013 14:38:55 +0000 (15:38 +0100)
committerDavid Mitchell <davem@iabyn.com>
Fri, 18 Oct 2013 14:38:55 +0000 (15:38 +0100)
commita7ed8fa56423636ca5e455bcd62684a54672da57
tree1c8e29554f6a941c3f814ac04ce65bc3c85c3774
parent099bebb16fa63575ffc552487c463aac86763c70
fix off-by one error in a2p

The str_gets() function, when encountering a newline character, checked to
see if the previous char was a \ escape. For a blank line, the check would
read the char at the position one before the start of the buffer. There
was a test to avoid this, but it was off-by-one.
AUTHORS
x2p/str.c