From 5b181f782a1558380afe24331d2f1b3b82b6f8d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 3 Dec 2016 13:31:59 +0100 Subject: vis: improve :set option number parsing Only accept numbers in range [0, INT_MAX]. Reject trailing garbage, where before something like `:set cc 50NaN` worked it will now cause an error. Close #418 --- vis.h | 1 - 1 file changed, 1 deletion(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 1cf9725..4f1fd29 100644 --- a/vis.h +++ b/vis.h @@ -45,7 +45,6 @@ typedef struct { typedef union { /* various types of arguments passed to key action functions */ bool b; int i; - size_t u; const char *s; const void *v; void (*w)(View*); -- cgit v1.2.3