Source-Changes archive

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

CVS commit: src/tests/lib/libutil



Module Name:    src
Committed By:   rillig
Date:           Sat Mar 14 12:04:02 UTC 2026

Modified Files:
        src/tests/lib/libutil: t_snprintb.c

Log Message:
tests/snprintb: ensure that the value has power-of-two digits

In direct calls to h_snprintb_m_len, several arguments are integers, so
provide a way to distinguish them visually by forcing the value to be
given in hexadecimal. The buffer sizes are typically given in decimal.

Prevent excess or forgotten digits by requiring the number of digits in
the value to be a power of two.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/tests/lib/libutil/t_snprintb.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