mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
top.cc: remove hard coded values of MAX_SP (#346)
This commit is contained in:
parent
ddf8a0f58f
commit
0523929d4a
@ -661,8 +661,8 @@ int parse_top_args(const char *s, const char *arg, struct text_object *obj)
|
||||
free_and_zero(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_and_zero(td->s);
|
||||
free_and_zero(obj->data.opaque);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user