From 1c83af0d946f7bcbc769edaaaf96af32639e3ee4 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Wed, 21 Feb 2007 14:18:52 +0000 Subject: [PATCH] Leaving out filler argument to align() now defaults it to a space --- src/funstr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/funstr.c b/src/funstr.c index 0d25492..c9a1db0 100644 --- a/src/funstr.c +++ b/src/funstr.c @@ -2037,11 +2037,13 @@ FUNCTION(fun_align) return; } if (nargs >= (ncols + 2)) { - if (!args[ncols + 1] || strlen(args[ncols + 1]) != 1) { + if (!args[ncols + 1] || strlen(args[ncols + 1]) > 1) { safe_str(T("#-1 FILLER MUST BE ONE CHARACTER"), buff, bp); return; } - filler = *(args[ncols + 1]); + if (*args[ncols + 1]) { + filler = *(args[ncols + 1]); + } } if (nargs >= (ncols + 3)) { fieldsep = args[ncols + 2]; -- 2.30.2