From d64b05b648c2f250a122c399e5ce8f35f7ec9ec5 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Tue, 5 Oct 2010 13:21:36 -0700 Subject: [PATCH] Build fix. --- src/specials.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/specials.cc b/src/specials.cc index 9498bb55..afad3668 100644 --- a/src/specials.cc +++ b/src/specials.cc @@ -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(strrchr(args, '"'))) { _size = _ptr - args - 1; } _size = _size < 1024 ? _size : 1023;