wok-6.x diff ruby-ncurses/stuff/Werror-format-security.patch @ rev 24045
memtest,plop: tune lzma compression
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 06 12:50:46 2021 +0000 (2021-05-06) |
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 Thu May 06 12:50:46 2021 +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 + }