mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 19:39:47 +00:00
fix for compiling on freebsd
This commit is contained in:
parent
b6a57a8f77
commit
d4bc07b1f1
@ -3306,10 +3306,12 @@ char load_config_file(const char *f)
|
||||
CONF("no_buffers") {
|
||||
no_buffers = string_to_bool(value);
|
||||
}
|
||||
#ifdef __linux__
|
||||
CONF("top_name_width") {
|
||||
if (set_top_name_width(value))
|
||||
CONF_ERR;
|
||||
}
|
||||
#endif /* __linux__ */
|
||||
CONF("top_cpu_separate") {
|
||||
cpu_separate = string_to_bool(value);
|
||||
}
|
||||
|
@ -1714,7 +1714,7 @@ int extract_variable_text_internal(struct text_object *retval, const char *const
|
||||
}
|
||||
|
||||
/* copy variable to buffer */
|
||||
len = (p - s > text_buffer_size-1) ? text_buffer_size-1 : (p - s);
|
||||
len = (p - s > (int)text_buffer_size-1) ? (int)text_buffer_size-1 : (p - s);
|
||||
strncpy(buf, s, len);
|
||||
buf[len] = '\0';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user