summaryrefslogtreecommitdiff
path: root/opt/conky/MAX_SP.patch.new
diff options
context:
space:
mode:
Diffstat (limited to 'opt/conky/MAX_SP.patch.new')
-rw-r--r--opt/conky/MAX_SP.patch.new15
1 files changed, 15 insertions, 0 deletions
diff --git a/opt/conky/MAX_SP.patch.new b/opt/conky/MAX_SP.patch.new
new file mode 100644
index 0000000..7a6119d
--- /dev/null
+++ b/opt/conky/MAX_SP.patch.new
@@ -0,0 +1,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;