Module Name: src Committed By: martin Date: Fri Aug 23 17:15:11 UTC 2024
Modified Files: src/usr.bin/audio/common [netbsd-10]: wav.c src/usr.bin/audio/record [netbsd-10]: record.c Log Message: Pull up following revision(s) (requested by mrg in ticket #797): usr.bin/audio/common/wav.c: revision 1.23 usr.bin/audio/record/record.c: revision 1.59 fix some sizeof() confusion. using "const char search[4]" as a function parameter means that "search" is actually a pointer type so "sizeof search" returns 8 on 64-bit platforms. i mis-read this and used "sizeof *search" which is always 1, noted by rillig. instead of trying to avoid writing "4" twice, put it in a define and use that in various places instead. annoying. match message & conversion function name properly. probably should make this into an array with two members. To generate a diff of this commit: cvs rdiff -u -r1.15.8.2 -r1.15.8.3 src/usr.bin/audio/common/wav.c cvs rdiff -u -r1.56.2.1 -r1.56.2.2 src/usr.bin/audio/record/record.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.