]> granicus.if.org Git - graphviz/commitdiff
fix bug#1013 - lost \n, \l, \r in strup_and_subst_obj()
authorellson <devnull@localhost>
Wed, 6 Sep 2006 11:46:05 +0000 (11:46 +0000)
committerellson <devnull@localhost>
Wed, 6 Sep 2006 11:46:05 +0000 (11:46 +0000)
lib/common/labels.c

index 09c4dd15264be8c7e370bfddface22251c434afe..e5eb65e97f8ebf039e6651eb2d5773e785451f83 100644 (file)
@@ -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;