From 90ab06ce5c1259f0ff91a4ff9ef5b2d0050234cd Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Wed, 8 Feb 2012 21:43:29 +0100 Subject: host/osmocon: allow uploading of files > 64kb in romload-mode Signed-off-by: Steve Markgraf --- src/host/osmocon/osmocon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/host/osmocon') diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c index fc29506c..66f24625 100644 --- a/src/host/osmocon/osmocon.c +++ b/src/host/osmocon/osmocon.c @@ -268,7 +268,7 @@ int read_file(const char *filename) } rc = fstat(fd, &st); - if (st.st_size > MAX_DNLOAD_SIZE) { + if ((st.st_size > MAX_DNLOAD_SIZE) && (dnload.mode != MODE_ROMLOAD)) { fprintf(stderr, "The maximum file size is 64kBytes (%u bytes)\n", MAX_DNLOAD_SIZE); return -EFBIG; -- cgit v1.2.3