diff options
author | Zach van Rijn <me@zv.io> | 2022-11-11 16:44:51 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-11-11 16:58:38 -0600 |
commit | ab1c259053596aaee4310a5e3f09591755e4ccf8 (patch) | |
tree | 7946463282d30de809ba08895558675f5a49acea /user/mcpp/04-gniibe-fix-12.patch | |
parent | 451e5cf47f3a45ebf46cad0940f07ef05324f4c5 (diff) | |
download | packages-ab1c259053596aaee4310a5e3f09591755e4ccf8.tar.gz packages-ab1c259053596aaee4310a5e3f09591755e4ccf8.tar.bz2 packages-ab1c259053596aaee4310a5e3f09591755e4ccf8.tar.xz packages-ab1c259053596aaee4310a5e3f09591755e4ccf8.zip |
user/mcpp: pull miscellaneous patches. fixes #169.
Diffstat (limited to 'user/mcpp/04-gniibe-fix-12.patch')
-rw-r--r-- | user/mcpp/04-gniibe-fix-12.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/user/mcpp/04-gniibe-fix-12.patch b/user/mcpp/04-gniibe-fix-12.patch new file mode 100644 index 000000000..13d29d62f --- /dev/null +++ b/user/mcpp/04-gniibe-fix-12.patch @@ -0,0 +1,17 @@ +Description: Fix for a bug reported to sourceforge.net #12 +Author: NIIBE Yutaka + +Index: mcpp/src/support.c +=================================================================== +--- mcpp.orig/src/support.c ++++ mcpp/src/support.c +@@ -1948,6 +1948,9 @@ static char * get_line( + dump_string( NULL, ptr); + } + len = strlen( ptr); ++ if (len == 0) ++ cwarn( "null character ignored", NULL, 0L, NULL); ++ + if (NBUFF - 1 <= ptr - infile->buffer + len + && *(ptr + len - 1) != '\n') { + /* The line does not yet end, though the buffer is full. */ |