]> Savannah Git Hosting - gnulib.git/commit
getlogin tests: Avoid writing to a literal string.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2025 21:17:06 +0000 (23:17 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2025 21:17:06 +0000 (23:17 +0200)
commit9291c5c31a7dd325e7366e5db777c0b4882b9abd
treedb0124b464a97f011430cdd747139f55b4b52258
parent0c09c4e2b5d2859815482daac87e8fa46a04c613
getlogin tests: Avoid writing to a literal string.

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