summaryrefslogtreecommitdiff
path: root/opt/conky/MAX_SP.patch.new
blob: 7a6119d5c7fc67b0595141f0a2ede6377dd241c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/top.c b/src/top.c
index 98907f4..3217c1a 100644
--- a/src/top.c
+++ b/src/top.c
@@ -661,8 +661,8 @@ int parse_top_args(const char *s, const char *arg, struct text_object *obj)
 			free(obj->data.opaque);
 			return 0;
 		}
-		if (n < 1 || n > 10) {
-			NORM_ERR("invalid num arg for top. Must be between 1 and 10.");
+		if (n < 1 || n > MAX_SP) {
+			NORM_ERR("invalid num arg for top. Must be between 1 and %d.", MAX_SP);
 			free(td->s);
 			free(obj->data.opaque);
 			return 0;