diff options
| -rw-r--r-- | devel/pkgconf/Makefile | 1 | ||||
| -rw-r--r-- | devel/pkgconf/files/patch-fileio.c | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/devel/pkgconf/Makefile b/devel/pkgconf/Makefile index 20db00caffd5..905d0115ae32 100644 --- a/devel/pkgconf/Makefile +++ b/devel/pkgconf/Makefile @@ -2,6 +2,7 @@ PORTNAME= pkgconf PORTVERSION= 0.9.7 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://rabbit.dereferenced.org/~nenolod/distfiles/ \ http://files.etoilebsd.net/pkgconf/ diff --git a/devel/pkgconf/files/patch-fileio.c b/devel/pkgconf/files/patch-fileio.c new file mode 100644 index 000000000000..a0a5e357c841 --- /dev/null +++ b/devel/pkgconf/files/patch-fileio.c @@ -0,0 +1,29 @@ +diff --git fileio.c fileio.c +index fed3da9..2e15833 100644 +--- fileio.c ++++ fileio.c +@@ -37,13 +37,22 @@ pkg_fgetline(char *line, size_t size, FILE *stream) + + else if (c == '\n') + { +- *s++ = c; +- + if (quoted) + { ++ /* Trim spaces */ ++ do { ++ c2 = getc(stream); ++ } while (c2 == '\t' || c2 == ' '); ++ ++ ungetc(c2, stream); ++ + quoted = false; + continue; + } ++ else ++ { ++ *s++ = c; ++ } + + break; + } |
