commit | 123f784ccc9138ce09176cdc2d3eae23af454941 | [log] [tgz] |
---|---|---|
author | Evan Gates <evan.gates@gmail.com> | Mon Oct 24 08:16:25 2016 -0700 |
committer | Laslo Hunhold <dev@frign.de> | Tue Dec 27 13:25:38 2016 +0100 |
tree | f2da432ea602efc61d5d7f32f4ac2a98e17a065c | |
parent | d6154bd87fd04616852a286c7fd09efb4cdbfa85 [diff] |
printf: handle \0 in %b arguments The %b case was using fputs after unescape to print the argument, which meant that it could not handle nul bytes. Instead, store the length returned from unescape and use fwrite to properly handle them.