Commit 32fd8768 authored by Paul Eggert's avatar Paul Eggert
Browse files

Fix bug with "%%" in error format

* src/doprnt.c (doprnt): Format "%%" correctly.
Problem reported by Philipp Stephani in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00901.html
parent 9c748b27
......@@ -438,7 +438,9 @@ doprnt (char *buffer, ptrdiff_t bufsize, const char *format,
}
case '%':
fmt--; /* Drop thru and this % will be treated as normal */
/* Treat this '%' as normal. */
fmt0 = fmt - 1;
break;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment