summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e72db8)
raw | patch | inline | side by side (parent: 4e72db8)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 3 Mar 2006 23:10:14 +0000 (23:10 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 3 Mar 2006 23:10:14 +0000 (23:10 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@767 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_gfx.c | patch | blob | history |
diff --git a/src/rrd_gfx.c b/src/rrd_gfx.c
index 5841d50867883e5c9d27581261ba31b649ab82bd..38d188ef136bb1096b9076d176ba91466cb2b7af 100644 (file)
--- a/src/rrd_gfx.c
+++ b/src/rrd_gfx.c
text_count = mbstowcs(cstr, "Enc-Err", 6);
p = cstr;
#else
- const unsigned char *p = text, ch;
+ unsigned char *p = text, ch;
if (!p)
return;
#endif
ch = afm_fix_osx_charset(ch); /* unsafe macro */
switch (ch) {
case 0:
-#ifdef HAVE_MBSTOWCS
+#ifdef HAVE_MBSTOWCS
free(cstr);
#endif
return;
case '"': fputs(""", fp); break;
default:
if (ch == 32) {
-#ifdef HAVE_MBSTOWCS
+#ifdef HAVE_MBSTOWCS
if (p <= cstr + 1 || !*p || *p == 32)
fputs(" ", fp); /* non-breaking space in unicode */
else
text_count = mbstowcs(cstr, "Enc-Err", 6);
p = cstr;
#else
- const unsigned char *p = node->text, ch;
+ unsigned char *p = node->text, ch;
if (!p)
return;
#endif