diff options
Diffstat (limited to 'textproc/groff/patches/patch-ba')
-rw-r--r-- | textproc/groff/patches/patch-ba | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/textproc/groff/patches/patch-ba b/textproc/groff/patches/patch-ba deleted file mode 100644 index 5e986260c18..00000000000 --- a/textproc/groff/patches/patch-ba +++ /dev/null @@ -1,47 +0,0 @@ -$NetBSD: patch-ba,v 1.1 2004/08/02 16:14:24 wiz Exp $ - ---- src/utils/hpftodit/hpftodit.cpp.orig 2004-04-07 18:25:21.000000000 +0200 -+++ src/utils/hpftodit/hpftodit.cpp -@@ -548,7 +548,8 @@ output_font_name(File &f) - *p++ = f.get_byte(); - } - else // value contains the string -- sprintf(font_name, "%.*s", count, (char*)(tag_info(font_name_tag).value)); -+ sprintf(font_name, "%.*s", -+ count, (char*)&(tag_info(font_name_tag).value)); - - // remove any trailing space - p = font_name + count - 1; -@@ -717,13 +718,17 @@ read_and_output_pcltypeface(File &f) - { - printf("pcltypeface "); - require_tag(typeface_tag); -- f.seek(tag_info(typeface_tag).value); -- for (uint32 i = 0; i < tag_info(typeface_tag).count; i++) { -- unsigned char c = f.get_byte(); -- if (c == '\0') -- break; -- putchar(c); -+ if (tag_info(typeface_tag).count > 4) { -+ f.seek(tag_info(typeface_tag).value); -+ for (uint32 i = 0; i < tag_info(typeface_tag).count; i++) { -+ unsigned char c = f.get_byte(); -+ if (c == '\0') -+ break; -+ putchar(c); -+ } - } -+ else -+ printf("%.4s", (char *)&(tag_info(typeface_tag).value)); - printf("\n"); - } - -@@ -1168,7 +1173,7 @@ dump_ascii(File &f, tag_type t) - printf("%c", f.get_byte()); - } - else -- printf("%.4s", (char*)(tag_info(t).value)); -+ printf("%.4s", (char*)&(tag_info(t).value)); - putchar('"'); - } - |