diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-23 14:03:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-23 14:03:03 +0200 |
commit | 15e58aea1441250cb85f760e644f97cd6efed35f (patch) | |
tree | 4d4621051b33c22043ea773658045bb623abd2b9 /builtin.c | |
parent | 7627ab595b5e4f7e44f3924345b6ba8a7043c482 (diff) | |
download | egawk-15e58aea1441250cb85f760e644f97cd6efed35f.tar.gz egawk-15e58aea1441250cb85f760e644f97cd6efed35f.tar.bz2 egawk-15e58aea1441250cb85f760e644f97cd6efed35f.zip |
Bug fix for sprintf/printf. Minor edit in awkgram.y.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1392,6 +1392,9 @@ printf_common(int nargs) int i; NODE *r, *tmp; + if (nargs == 0) + fatal(_("[s]printf called with no arguments")); + assert(nargs <= max_args); for (i = 1; i <= nargs; i++) { tmp = args_array[nargs - i] = POP(); |