Source-Changes archive

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

CVS commit: src/usr.bin/indent



Module Name:    src
Committed By:   rillig
Date:           Tue Oct  5 06:55:24 UTC 2021

Modified Files:
        src/usr.bin/indent: indent.c parse.c

Log Message:
indent: fix Clang-Tidy warnings, clean up bakcopy

The comment above and inside bakcopy had been outdated for at least the
last 28 years, the backup file is named "%s.BAK", not ".B%s".

Prevent buffer overflow for very long filenames (sprintf -> snprintf).


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/usr.bin/indent/indent.c
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/indent/parse.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