diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-02 12:16:51 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-02 12:16:51 +0000 |
commit | 1244dd7d189d73282911ba8a1ec04e8b820eb814 (patch) | |
tree | 95ab9b985a6e595fd37b7416acc2170c2d3d80d7 /firmware/common | |
parent | 824a003052c51fdb9433bfd0dd0e4a525da8b2e7 (diff) |
Added support for %%
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@380 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/sprintf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c index 80bdda6336..95bf55ebea 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c @@ -92,6 +92,10 @@ int vsnprintf (char *buf, int size, const char *fmt, va_list ap) while (val > 0); break; + case '%': + *--str = '%'; + break; + default: *--str = ch; break; |