mds/net-ftp/atftp/files/atftp-0.6-security.patch

24 lines
1019 B
Diff
Raw Normal View History

--- tftp.c 2003-06-17 00:13:52.000000000 +0200
+++ tftp.patch.c 2003-06-17 00:09:50.000000000 +0200
@@ -827,17 +827,17 @@ int tftp_cmd_line_options(int argc, char
process_cmd(ac, av);
break;
case 'T':
- sprintf(string, "timeout %s", optarg);
+ snprintf(string, sizeof(string), "timeout %s", optarg);
make_arg(string, &ac, &av);
process_cmd(ac, av);
break;
case 't':
- sprintf(string, "option timeout %s", optarg);
+ snprintf(string, sizeof(string), "option timeout %s", optarg);
make_arg(string, &ac, &av);
process_cmd(ac, av);
break;
case 'b':
- sprintf(string, "option blksize %s", optarg);
+ snprintf(string, sizeof(string), "option blksize %s", optarg);
make_arg(string, &ac, &av);
process_cmd(ac, av);
break;