diff options
author | onetrueawk <bwkster@gmail.com> | 2019-01-21 14:08:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 14:08:25 -0500 |
commit | 8dfde739e99869fab11fdee14b5d3e3c1cd4315d (patch) | |
tree | cbc4b01826d2f417bf834ef6a1a9d4ae53f2a7a3 /run.c | |
parent | d45db5e9d802659e8e4ba3457c1f354fa99b18d2 (diff) | |
parent | 294f4c0db5ed292a30959cb6b1c346f573083c62 (diff) | |
download | one-true-awk-8dfde739e99869fab11fdee14b5d3e3c1cd4315d.tar.gz |
Merge branch 'master' into split-fs-from-array
Diffstat (limited to 'run.c')
-rw-r--r-- | run.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -863,6 +863,9 @@ int format(char **pbuf, int *pbufsize, const char *s, Node *a) /* printf-like co FATAL("'$' not permitted in awk formats"); } if (*s == '*') { + if (a == NULL) { + FATAL("not enough args in printf(%s)", os); + } x = execute(a); a = a->nnext; sprintf(t-1, "%d", fmtwd=(int) getfval(x)); |