summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergiusz Michalik <lmi034@post.uit.no>2018-06-20 19:34:28 +0200
committerSergiusz Michalik <lmi034@post.uit.no>2018-06-20 19:34:28 +0200
commit9873d68bf1f93b424f920a8c095e3d3ee7d3fdf5 (patch)
tree456738bb1a95a04b287fbd882033fe7897821068
parentca76511411624c670789e874d873b59cf563c2c9 (diff)
zalloc limit fix for libinput-record
-rw-r--r--src/libinput-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libinput-util.h b/src/libinput-util.h
index 4f60e8ea..720f388b 100644
--- a/src/libinput-util.h
+++ b/src/libinput-util.h
@@ -142,9 +142,9 @@ zalloc(size_t size)
{
void *p;
- /* We never need to alloc anything even near one MB so we can assume
+ /* We never need to alloc anything more than 1,5 MB so we can assume
* if we ever get above that something's going wrong */
- if (size > 1024 * 1024)
+ if (size > 1536 * 1024)
abort();
p = calloc(1, size);