[DRE-commits] [SCM] ruby-ncurses.git branch, master, updated. debian/1.3.1-1-1-gc74b2a3

Per Andersson avtobiff at gmail.com
Thu Jun 7 17:18:46 UTC 2012


The following commit has been merged in the master branch:
commit c74b2a3a5dc195e1aecef309a4fea2ff1713b21a
Author: Per Andersson <avtobiff at gmail.com>
Date:   Thu Jun 7 19:09:53 2012 +0200

    Add patch for formatting error string. (Closes: #675951)

diff --git a/debian/changelog b/debian/changelog
index 68bc9f9..6da0d02 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-ncurses (1.3.1-2) unstable; urgency=low
+
+  * Fix FTBFS. Closes: #675951
+    - Add patch for formatting error string.
+
+ -- Per Andersson <avtobiff at gmail.com>  Thu, 07 Jun 2012 19:08:06 +0200
+
 ruby-ncurses (1.3.1-1) unstable; urgency=low
 
   * Changed upstream to ncursesw-ruby. Closes: #477366.
diff --git a/debian/patches/0002-Format-error-string.patch b/debian/patches/0002-Format-error-string.patch
new file mode 100644
index 0000000..847b770
--- /dev/null
+++ b/debian/patches/0002-Format-error-string.patch
@@ -0,0 +1,22 @@
+From: Per Andersson <avtobiff at gmail.com>
+Date: Thu, 7 Jun 2012 19:04:54 +0200
+Subject: Format error string.
+
+---
+ form_wrap.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/form_wrap.c b/form_wrap.c
+index c1a9e47..ad35047 100644
+--- a/form_wrap.c
++++ b/form_wrap.c
+@@ -1132,7 +1132,7 @@ static void* make_arg(va_list* ap) {
+ 		  char msg[500];
+ 		  snprintf(msg, 500, "The validation functions for this field type need %d additional arguments.",(int)(NUM2INT(argc)-1));
+ 		  msg[499]=0;
+-		  rb_raise(rb_eArgError, msg);	
++		  rb_raise(rb_eArgError, "%s", msg);
+ 		}
+ 	 } 
+   }
+-- 
diff --git a/debian/patches/series b/debian/patches/series
index 9f6de4f..d9e4275 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Define-STR2CSTR-macro.patch
+0002-Format-error-string.patch

-- 
ruby-ncurses.git



More information about the Pkg-ruby-extras-commits mailing list