wok annotate ruby-ncurses/stuff/Werror-format-security.patch @ rev 24988

Fix perl-gd & tcptrack
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 12 11:01:25 2022 +0000 (2022-05-12)
parents
children
rev   line source
paul@16777 1 diff -Naur ncurses-ruby-1.3.1/form_wrap.c ncurses-ruby-1.3.1.format/form_wrap.c
paul@16777 2 --- ncurses-ruby-1.3.1/form_wrap.c 2014-02-03 11:31:39.049867878 +0100
paul@16777 3 +++ ncurses-ruby-1.3.1.format/form_wrap.c 2014-02-03 11:44:37.001008654 +0100
paul@16777 4 @@ -1132,7 +1132,7 @@
paul@16777 5 char msg[500];
paul@16777 6 snprintf(msg, 500, "The validation functions for this field type need %d additional arguments.",(int)(NUM2INT(argc)-1));
paul@16777 7 msg[499]=0;
paul@16777 8 - rb_raise(rb_eArgError, msg);
paul@16777 9 + rb_raise(rb_eArgError, "%s", msg);
paul@16777 10 }
paul@16777 11 }
paul@16777 12 }