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

Up pce (20220220-991c55d9)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 08 10:57:53 2022 +0000 (2022-05-08)
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	Sun May 08 10:57:53 2022 +0000
     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 +   }