Escape '%' in format
authorJindrich Novy <jnovy@redhat.com>
Fri, 4 Apr 2008 11:48:02 +0000 (13:48 +0200)
committerJindrich Novy <jnovy@redhat.com>
Fri, 4 Apr 2008 11:49:13 +0000 (13:49 +0200)
build/spec.c

index 3089f4d..d4d8ab7 100644 (file)
@@ -606,7 +606,7 @@ printNewSpecfile(rpmSpec spec)
        if (h == NULL)
            continue;
 
-       rasprintf(&fmt, "%{%s}", tn);
+       rasprintf(&fmt, "%%{%s}", tn);
        msgstr = _free(msgstr);
 
        /* XXX this should use queryHeader(), but prints out tn as well. */