From: ellson Date: Wed, 6 Sep 2006 11:46:05 +0000 (+0000) Subject: fix bug#1013 - lost \n, \l, \r in strup_and_subst_obj() X-Git-Tag: LAST_LIBGRAPH~32^2~5899 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e242b84634132fefa261beeb28244a91fd1a1ef;p=graphviz fix bug#1013 - lost \n, \l, \r in strup_and_subst_obj() --- diff --git a/lib/common/labels.c b/lib/common/labels.c index 09c4dd152..e5eb65e97 100644 --- a/lib/common/labels.c +++ b/lib/common/labels.c @@ -315,6 +315,10 @@ char *strdup_and_subst_obj(char *str, void *obj) case 'H': for (t = h_str; (*p = *t++); p++); break; + default: + *p++ = '\\'; + *p++ = c; + break; } } else { *p++ = c;