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:   cgd
Date:           Sat Jun 19 00:00:49 UTC 1999

Modified Files:
        basesrc/usr.bin/msgc: msg_sys.def

Log Message:
fix an off-by-one error (it would put up to max_chars plus NUL into the string,
which is one too many).  Also, msgc manual page says that 'def' and 'val'
can be the same string, but the way input was done (characters typed
went directly into val) meant that the contents of 'def' would be corrupted.
If the user backspaced to the beginning of the line and hit return (to accept
the default), they'd get a combination of the old default string and the
new characters they typed.  alloca() a buffer an put new input there to
avoid this problem.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 basesrc/usr.bin/msgc/msg_sys.def

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