From 9e242b84634132fefa261beeb28244a91fd1a1ef Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 6 Sep 2006 11:46:05 +0000 Subject: [PATCH] fix bug#1013 - lost \n, \l, \r in strup_and_subst_obj() --- lib/common/labels.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.40.0