diff options
Diffstat (limited to 'print/bibtool/patches/patch-parse.c')
-rw-r--r-- | print/bibtool/patches/patch-parse.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/print/bibtool/patches/patch-parse.c b/print/bibtool/patches/patch-parse.c index 4f6aaff9e4c..2a6a5062b7b 100644 --- a/print/bibtool/patches/patch-parse.c +++ b/print/bibtool/patches/patch-parse.c @@ -1,23 +1,25 @@ -$NetBSD: patch-parse.c,v 1.1 2012/12/24 01:50:58 dholland Exp $ +$NetBSD: patch-parse.c,v 1.2 2015/01/24 13:40:14 mef Exp $ Fix bug handling EOF, detected by gcc. ---- parse.c~ 2004-02-08 09:41:45.000000000 +0000 -+++ parse.c -@@ -533,13 +533,15 @@ static void parse_number() /* +--- parse.c.orig 2014-01-14 04:16:16.000000000 +0900 ++++ parse.c 2015-01-24 22:13:12.000000000 +0900 +@@ -536,14 +536,16 @@ static void parse_number() /* static int parse_string(quotep) /* */ - int quotep; /* */ - { Uchar c; /* */ -+ int c1; /* */ - int left; /* */ - int start_flno = flno; /* */ + int quotep; /* */ + { int c; /* */ ++ int c1; + int left; /* */ + int start_flno = flno; /* */ /* */ left = 0; /* */ if ( quotep ) (void)sbputchar('"',parse_sb); /*" */ do /* */ - { switch ( c=skip_nl() ) /* */ -+ { c=c1=skip_nl(); /* */ +- { case EOF: /* */ ++ { c=c1=skip_nl(); /* */ + switch ( c1 ) /* */ - { case EOF: /* */ - UnterminatedError("Unterminated double quote", - start_flno); ++ { case EOF: /* */ + UnterminatedError("Unterminated double quote",/* */ + start_flno); /* */ + return(FALSE); /* */ |