mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Allow `%' to be written out with an octal escape (\45 or \045).
PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
This commit is contained in:
parent
7e949b63e4
commit
37fd459046
1 changed files with 5 additions and 1 deletions
|
|
@ -376,7 +376,11 @@ escape(fmt)
|
|||
value += *fmt - '0';
|
||||
}
|
||||
--fmt;
|
||||
*store = value;
|
||||
if (value == '%') {
|
||||
*store++ = '%';
|
||||
*store = '%';
|
||||
} else
|
||||
*store = value;
|
||||
break;
|
||||
default:
|
||||
*store = *fmt;
|
||||
|
|
|
|||
Loading…
Reference in a new issue