wok-6.x annotate ruby-ncurses/stuff/Werror-format-security.patch @ rev 23365

updated perl-mail-sendmail (0.79 -> 0.80)
author Hans-G?nter Theisgen
date Tue Mar 31 11:21:06 2020 +0100 (2020-03-31)
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 }