diff options
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/writettf.c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writettf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/writettf.c b/Build/source/texk/web2c/pdftexdir/writettf.c index 4c33f568434..9de6fd54c6c 100644 --- a/Build/source/texk/web2c/pdftexdir/writettf.c +++ b/Build/source/texk/web2c/pdftexdir/writettf.c @@ -325,10 +325,11 @@ do {\ static char *strip_spaces_and_delims(char *s, int l) { static char buf[SMALL_BUF_SIZE]; - assert(l >= 0 && l < (int) sizeof(buf)); char *p = buf; int i; + assert(l >= 0 && l < (int) sizeof(buf)); + for (i = 0; i < l; s++, i++) { if (*s == '(' || *s == ')' || *s == '<' || *s == '>' || *s == '[' || *s == ']' || *s == '{' || *s == '}' || |