pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/abcmidi/patches Add forgotten patches.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4462f66418e7
branches:  trunk
changeset: 512846:4462f66418e7
user:      ben <ben%pkgsrc.org@localhost>
date:      Tue May 16 13:42:29 2006 +0000

description:
Add forgotten patches.

diffstat:

 audio/abcmidi/patches/patch-ab |  31 +++++++++++++++++++++++++++++++
 audio/abcmidi/patches/patch-ac |  13 +++++++++++++
 2 files changed, 44 insertions(+), 0 deletions(-)

diffs (52 lines):

diff -r 952b083d33fc -r 4462f66418e7 audio/abcmidi/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/abcmidi/patches/patch-ab    Tue May 16 13:42:29 2006 +0000
@@ -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 -r 952b083d33fc -r 4462f66418e7 audio/abcmidi/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/abcmidi/patches/patch-ac    Tue May 16 13:42:29 2006 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index