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

BootProg/boot32.asm: add int 21h services 02h, 09h, 25h, 35h
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 26 17:36:15 2024 +0000 (5 days ago)
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 Jun 26 17:36:15 2024 +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 +   }