[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 32fd876: Fix bug with "%%" in error format
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 32fd876: Fix bug with "%%" in error format |
Date: |
Wed, 31 May 2017 19:50:28 -0400 (EDT) |
branch: master
commit 32fd8768093e21f1e812548d27c0bfd70cd82f78
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
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
---
src/doprnt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/doprnt.c b/src/doprnt.c
index bed9350..418601a 100644
--- a/src/doprnt.c
+++ b/src/doprnt.c
@@ -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;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 32fd876: Fix bug with "%%" in error format,
Paul Eggert <=