|
From: | Paul Eggert |
Subject: | Re: new module 'strlcpy' |
Date: | Wed, 27 Sep 2017 16:27:01 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
That being said, I take your point that I should not have used strncpy to pacify GCC in that test case: I plead guilty to being lazy because the test-case code already has arbitrary limits.
Anyway, strlcpy is overkill here, as snprintf does the job just as well here, and is already standard and supported by Gnulib. So I propose the attached simpler patch instead.
0001-duplocale-tests-use-snprintf-not-strncpy.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |