projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f4da37
)
Leaving out filler argument to align() now defaults it to a space
author
Ari Johnson
<ari@cobramush.org>
Wed, 21 Feb 2007 14:18:52 +0000
(14:18 +0000)
committer
Ari Johnson
<ari@cobramush.org>
Wed, 21 Feb 2007 14:18:52 +0000
(14:18 +0000)
src/funstr.c
patch
|
blob
|
history
diff --git
a/src/funstr.c
b/src/funstr.c
index 0d254921b6c1565ba431c2f171e2ed07dff5c97c..c9a1db0293e8c400389d49d196f6dcf4c9744cb7 100644
(file)
--- 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];