artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
171c927
)
Fix an off-by-one error that's already been accepted upstream
author
guenther
<guenther@openbsd.org>
Mon, 14 Jul 2014 05:54:19 +0000
(
05:54
+0000)
committer
guenther
<guenther@openbsd.org>
Mon, 14 Jul 2014 05:54:19 +0000
(
05:54
+0000)
gnu/usr.bin/perl/x2p/str.c
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/perl/x2p/str.c
b/gnu/usr.bin/perl/x2p/str.c
index
86127a0
..
e12e5e9
100644
(file)
--- a/
gnu/usr.bin/perl/x2p/str.c
+++ b/
gnu/usr.bin/perl/x2p/str.c
@@
-200,7
+200,7
@@
str_gets(STR *str, FILE *fp)
for (;;) {
while (--cnt >= 0) {
if ((*bp++ = *ptr++) == newline) {
- if (bp <= str->str_ptr || bp[-2] != '\\')
+ if (bp <= str->str_ptr
+ 1
|| bp[-2] != '\\')
goto thats_all_folks;
else {
line++;