diff options
author | ben <ben@pkgsrc.org> | 2006-05-16 13:42:29 +0000 |
---|---|---|
committer | ben <ben@pkgsrc.org> | 2006-05-16 13:42:29 +0000 |
commit | 06d659d1f7cd01e1954614379f4e51389ab942ef (patch) | |
tree | ff13cd5c95616844a8f29778a3eebe6c44e9d700 /audio/abcmidi | |
parent | 91f97cb051a36893ff43a1b18579d4ba095b558a (diff) | |
download | pkgsrc-06d659d1f7cd01e1954614379f4e51389ab942ef.tar.gz |
Add forgotten patches.
Diffstat (limited to 'audio/abcmidi')
-rw-r--r-- | audio/abcmidi/patches/patch-ab | 31 | ||||
-rw-r--r-- | audio/abcmidi/patches/patch-ac | 13 |
2 files changed, 44 insertions, 0 deletions
diff --git a/audio/abcmidi/patches/patch-ab b/audio/abcmidi/patches/patch-ab new file mode 100644 index 00000000000..02e7442b1e1 --- /dev/null +++ b/audio/abcmidi/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1 2006/05/16 13:42:29 ben Exp $ + +--- drawtune.c.orig 2006-01-17 05:07:34.000000000 -0800 ++++ drawtune.c +@@ -492,7 +492,7 @@ char* s; + double x; + char units[40]; + +- count = sscanf(s, "%lf%s", &x, units); ++ count = sscanf(s, "%lf%39s", &x, units); + if (count > 0) { + if ((count >= 2) && (strncmp(units, "cm", 2) == 0)) { + x = x*28.3; +@@ -1950,7 +1950,7 @@ static void define_font(struct font* the + char fontname[80]; + int fontsize, params; + +- params = sscanf(s, "%s %d", fontname, &fontsize); ++ params = sscanf(s, "%79s %d", fontname, &fontsize); + if (params >= 1) { + if (strcmp(fontname, "-") != 0) { + if (thefont->name != NULL) { +@@ -1974,7 +1974,7 @@ char *s; + int result; + + p[0] = '\0'; +- sscanf(s, " %10s", p); ++ sscanf(s, " %9s", p); + result = 1; + if ((strcmp(p, "0") == 0) || (strcmp(p, "no") == 0) || + (strcmp(p, "false") == 0)) { diff --git a/audio/abcmidi/patches/patch-ac b/audio/abcmidi/patches/patch-ac new file mode 100644 index 00000000000..31545a370b4 --- /dev/null +++ b/audio/abcmidi/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1 2006/05/16 13:42:29 ben Exp $ + +--- yapstree.c.orig 2006-04-22 11:05:06.000000000 -0700 ++++ yapstree.c +@@ -1483,7 +1483,7 @@ char *str; /* string following first wor + }; + }; + if (strcmp(p, "vskip") == 0) { +- count = sscanf(s, "%lf%s", &vspace, units); ++ count = sscanf(s, "%lf%79s", &vspace, units); + if (count > 0) { + if ((count >= 2) && (strncmp(units, "cm", 2) == 0)) { + vspace = vspace*28.3; |