]> Savannah Git Hosting - gnulib.git/commit
getlogin_r tests: Avoid writing to a literal string.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2025 21:18:10 +0000 (23:18 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2025 21:18:10 +0000 (23:18 +0200)
commitebff098c2e7252ffc4c926eb33a87bba9c035e3c
tree139d2d1c807d99da680f4f9b2cb3106340488e30
parent9291c5c31a7dd325e7366e5db777c0b4882b9abd
getlogin_r tests: Avoid writing to a literal string.

* tests/test-getlogin_r.c: Include xalloc.h.
(main): Pass a writable string to putenv().
* modules/getlogin_r-tests (Depends-on): Add xalloc.
(Makefile.am): Link the program with libintl when needed.
ChangeLog
modules/getlogin_r-tests
tests/test-getlogin_r.c