wok-current diff ruby-ncurses/stuff/Werror-format-security.patch @ rev 17675

nmon: keep source
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 18 11:21:08 2015 +0100 (2015-02-18)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ruby-ncurses/stuff/Werror-format-security.patch	Wed Feb 18 11:21:08 2015 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +diff -Naur ncurses-ruby-1.3.1/form_wrap.c ncurses-ruby-1.3.1.format/form_wrap.c
     1.5 +--- ncurses-ruby-1.3.1/form_wrap.c	2014-02-03 11:31:39.049867878 +0100
     1.6 ++++ ncurses-ruby-1.3.1.format/form_wrap.c	2014-02-03 11:44:37.001008654 +0100
     1.7 +@@ -1132,7 +1132,7 @@
     1.8 + 		  char msg[500];
     1.9 + 		  snprintf(msg, 500, "The validation functions for this field type need %d additional arguments.",(int)(NUM2INT(argc)-1));
    1.10 + 		  msg[499]=0;
    1.11 +-		  rb_raise(rb_eArgError, msg);	
    1.12 ++		  rb_raise(rb_eArgError, "%s", msg);	
    1.13 + 		}
    1.14 + 	 } 
    1.15 +   }