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:
geos_one
2009-03-19 18:09:00 +00:00
parent 333bc089ef
commit bba081f507
20 changed files with 1027 additions and 0 deletions

View 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;