add tftp servers with filecase patch
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@886 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
23
net-ftp/atftp/files/atftp-0.6-security.patch
Normal file
23
net-ftp/atftp/files/atftp-0.6-security.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
--- 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;
|
||||
Reference in New Issue
Block a user