tags 676205 + patch
thanks
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 ruby-ldap (0.9.12-1.1) UNRELEASED; urgency=low
 .
   * Non-maintainer upload.
   *
Author: <tdjb@mobile>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- ruby-ldap-0.9.12.orig/conn.c
+++ ruby-ldap-0.9.12/conn.c
@@ -674,7 +674,7 @@ rb_ldap_conn_get_option (VALUE self, VAL
     }
   else
     {
-      rb_raise (rb_eLDAP_Error, ldap_err2string (ldapdata->err));
+      rb_raise (rb_eLDAP_Error, "%s", ldap_err2string (ldapdata->err));
     };
 #else
   rb_notimplement ();
--- ruby-ldap-0.9.12.orig/rbldap.h
+++ ruby-ldap-0.9.12/rbldap.h
@@ -141,13 +141,13 @@ VALUE rb_ldap_mod_vals (VALUE);
 
 #define Check_LDAP_Result(err) { \
   if( (err) != LDAP_SUCCESS && (err) != LDAP_SIZELIMIT_EXCEEDED ){ \
-    rb_raise(rb_eLDAP_ResultError, ldap_err2string(err)); \
+    rb_raise(rb_eLDAP_ResultError, "%s", ldap_err2string(err)); \
   } \
 }
 
 #define Check_LDAP_OPT_Result(err) { \
   if( (err) != LDAP_OPT_SUCCESS ){ \
-    rb_raise(rb_eLDAP_ResultError, ldap_err2string(err)); \
+    rb_raise(rb_eLDAP_ResultError, "%s", ldap_err2string(err)); \
   } \
 }
 

Reply via email to