1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Build fix.

This commit is contained in:
Brenden Matthews 2010-10-05 13:21:36 -07:00
parent 6437804959
commit d64b05b648

View File

@ -234,7 +234,7 @@ char *scan_graph(struct text_object *obj, const char *args, double defscale)
if (*buf == '"') {
char *_ptr;
size_t _size;
if (_ptr = strrchr(args, '"')) {
if (_ptr = const_cast<char*>(strrchr(args, '"'))) {
_size = _ptr - args - 1;
}
_size = _size < 1024 ? _size : 1023;