diff --git a/lib/t1lib/parseAFM.c b/lib/t1lib/parseAFM.c index 6a31d7f..ba64541 100644 --- a/lib/t1lib/parseAFM.c +++ b/lib/t1lib/parseAFM.c @@ -199,7 +199,9 @@ static char *token(stream) idx = 0; while (ch != EOF && ch != ' ' && ch != CR && ch != LF && - ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';'){ + ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';' + && idx < (MAX_NAME -1)) + { ident[idx++] = ch; ch = fgetc(stream); } /* while */ @@ -235,7 +237,7 @@ static char *linetoken(stream) while ((ch = fgetc(stream)) == ' ' || ch == '\t' ); idx = 0; - while (ch != EOF && ch != CR && ch != LF && ch != CTRL_Z) + while (ch != EOF && ch != CR && ch != LF && ch != CTRL_Z && idx < (MAX_NAME - 1)) { ident[idx++] = ch; ch = fgetc(stream); Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-locate.sh
AgeCommit message (Collapse)Author
2023-06-18Add 'guix locate'.Ludovic Courtès
* guix/scripts/locate.scm, tests/guix-locate.sh: New files. * Makefile.am (MODULES): Add 'guix/scripts/locate.scm'. (SH_TESTS): Add 'tests/guix-locate.sh'. * po/guix/POTFILES.in: Add it. * doc/guix.texi (Invoking guix locate): New node. Co-authored-by: Antoine R. Dumont <antoine.romain.dumont@gmail.com>