From: Ari Johnson Date: Wed, 21 Feb 2007 14:18:52 +0000 (+0000) Subject: Leaving out filler argument to align() now defaults it to a space X-Git-Tag: 0.73~136 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=1c83af0d946f7bcbc769edaaaf96af32639e3ee4;p=cobramush.git Leaving out filler argument to align() now defaults it to a space --- 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];