From b3ba650ac276b2c17e5f47add84361f6038bddc8 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 21 May 2014 21:03:45 -0400 Subject: [PATCH] Fix a sprintf size typo which would overwrite the error buffer in bim's open_file func --- userspace/extra/bim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/extra/bim.c b/userspace/extra/bim.c index a3f5ffa2..d3ca3c10 100644 --- a/userspace/extra/bim.c +++ b/userspace/extra/bim.c @@ -549,7 +549,7 @@ void open_file(char * file) { if (!f) { char buf[1024]; - snprintf(buf, 1204, "Could not open %s", file); + snprintf(buf, 1024, "Could not open %s", file); render_error(buf); return; }