Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: basesrc

Module Name:    basesrc
Committed By:   lukem
Date:           Fri Sep 24 00:48:25 UTC 1999

Modified Files:
        basesrc/usr.bin/ftp: cmds.c util.c

Log Message:
* finish replacing snprintf() with sprintf(), for portability reasons.
  add lots of comments about how to size up the buffers, and add extra
  checks to hopefully ensure that there won't be an overflow (unless
  someone modifies the length of the sprintf()s).
* as part of the above, slightly rework the way the `*' bar is calculated.
  also fixes a display bug when > 160 stars were needed to be printed.
  the maximum progress bar width at this time is 256.
* remove some code that checks the port that was #if 0-ed out as part of the
  ipv6 migration; it's not going to be used again.

To generate a diff of this commit:
cvs rdiff -r1.58 -r1.59 basesrc/usr.bin/ftp/cmds.c basesrc/usr.bin/ftp/util.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index