aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-09 21:13:54 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-09 21:13:54 +0200
commit56e87c6a10ebd301e4dbea42b2def926f5571df6 (patch)
tree556c8f6c7e030e3a60d14c71351398ee610f3b40
parenta5c5e22204d54bf80c2ac2277a56db15467ee641 (diff)
downloadmblaze-56e87c6a10ebd301e4dbea42b2def926f5571df6.tar.gz
mscan: u8putstr: force left-alignment
-rw-r--r--mscan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mscan.c b/mscan.c
index 470a3ea..2035838 100644
--- a/mscan.c
+++ b/mscan.c
@@ -35,6 +35,8 @@ static char *fflag = default_fflag;
int
u8putstr(FILE *out, char *s, ssize_t l, int pad)
{
+ if (l < 0)
+ l = -l;
ssize_t ol = l;
while (*s && l > 0) {