wok view ruby-ncurses/stuff/Werror-format-security.patch @ rev 25057
linux-libre: fix linux-libre-3.18.129-gnu-slitaz.config
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 06 11:05:30 2022 +0000 (2022-06-06) |
parents | |
children |
line source
1 diff -Naur ncurses-ruby-1.3.1/form_wrap.c ncurses-ruby-1.3.1.format/form_wrap.c
2 --- ncurses-ruby-1.3.1/form_wrap.c 2014-02-03 11:31:39.049867878 +0100
3 +++ ncurses-ruby-1.3.1.format/form_wrap.c 2014-02-03 11:44:37.001008654 +0100
4 @@ -1132,7 +1132,7 @@
5 char msg[500];
6 snprintf(msg, 500, "The validation functions for this field type need %d additional arguments.",(int)(NUM2INT(argc)-1));
7 msg[499]=0;
8 - rb_raise(rb_eArgError, msg);
9 + rb_raise(rb_eArgError, "%s", msg);
10 }
11 }
12 }