[Pkg-shadow-devel] Bug#1032393: Bug#1032393: [PATCH v2 2/2] debian/control: Add libbsd-dev and pkg-config
Paul Eggert
eggert at cs.ucla.edu
Sun Mar 12 01:38:04 GMT 2023
On 2023-03-11 14:39, Alejandro Colomar wrote:
> I wonder
> if the patch is really "simplifying".
It depends on how one measures simplicity. The reader will need to know
strftime's API regardless; requiring the reader to also know strlcpy's
API makes the reader's job harder.
Also, it's less machine code to call just the one function (if one cares
about simplicity of debugging :-).
If you still prefer calling two different functions instead of just one,
feel free to modify it to use plain strcpy. strlcpy isn't needed here as
the destination buffers are all big enough. To be honest though I like
it the way it is (though it could use a comment; I'll add that).
More information about the Pkg-shadow-devel
mailing list