Menu

#2 incorrect argument count

v1.0 (example)
open
tftpc (1)
5
2014-02-21
2014-02-21
No

tftpc.c should be patched as below. The problem is that, invoking tftpc as "tftpc remote-server -g filename" gives a "Client: wrong number of arguments: 4" error, but this is a legitimate usage.

cat tftp-1.0_arm_port/tftpc.c_patch
tftpc.c_orig 2006-12-17 12:19:25.000000000 -0800
--- tftpc.c 2014-02-20 21:55:17.000000000 -0800
***
172,174
/
check for valid input
/
! if (argc < 5 || argc > 12)
{
--- 172,174 ----
/
check for valid input
/
! if (argc < 4 || argc > 12)
{

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.