nooc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/nooc
Log | Files | Refs | LICENSE

commit 91a1132baaad6603c54c494740b558aa73e6e97b
parent 2b686cbe658d51860a657ac4dc57329f2a10f883
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Sun, 28 Nov 2021 20:47:41 -0600

error if not enough args given

Diffstat:
Mmain.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -452,8 +452,10 @@ struct stat statbuf; int main(int argc, char *argv[]) { - if (argc < 3) + if (argc < 3) { + fprintf(stderr, "not enough args\n"); return 1; + } int in = open(argv[1], 0, O_RDONLY); if (in < 0) {