Module Name: src Committed By: rillig Date: Sat Oct 30 18:23:17 UTC 2021
Modified Files: src/usr.bin/indent: pr_comment.c Log Message: indent: fix bounds check for sc_buf Some years ago, save_com was an array of characters, used as temporary storage. When sc_buf was added, this code was forgotten. The bounds check must be on the array itself, not on an iterator that points somewhere in that array. To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/usr.bin/indent/pr_comment.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.