their must be a { between two % in a query format (unless %% is used)

CVS patchset: 2509
CVS date: 1998/10/29 16:33:04
This commit is contained in:
ewt 1998-10-29 16:33:04 +00:00
parent d05a0a39c9
commit 983300ecb3
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@
- generalize cpio I/O to eliminate pipe to exec'd gzip on install.
- add {init,add,expand}Macro args everywhere (new macro.c compatibility)
- add new fully recursive macro.c
- their must be a { between two % in a query format (unless %% is used)
2.5.5 -> 2.5.6:
- fix off-by-1 alloca that prevented relocating /.

View File

@ -1445,8 +1445,8 @@ static int parseFormat(char * str, const struct headerTagTableEntry * tags,
format[currToken].u.tag.arrayCount = 0;
chptr = start;
while (*chptr && *chptr != '{') chptr++;
if (!*chptr) {
while (*chptr && *chptr != '{' && *chptr != '%') chptr++;
if (!*chptr || *chptr == '%') {
*error = _("missing { after %");
freeFormat(format, numTokens);
return 1;