about summary refs log tree commit diff
path: root/src/core/tests/test-utils.c
diff options
context:
space:
mode:
authorJeremy Bicha <jeremy.bicha@canonical.com>2022-08-18 08:31:29 -0400
committerJeremy Bicha <jeremy.bicha@canonical.com>2022-08-18 08:31:29 -0400
commitb0887dd4d035acc0d84aa859748d36891548eaaf (patch)
treec4dc0dae50954f3c8fb600aa9e7cfaabeb80deb0 /src/core/tests/test-utils.c
parent1a62dcfdc0470be37743914da69fe0b0677c6bfb (diff)
parent4741f1a52215c7ba466140912084d6906185bef3 (diff)
Merge branch 'debian/master' into ubuntu/master
Diffstat (limited to 'src/core/tests/test-utils.c')
-rw-r--r--src/core/tests/test-utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/tests/test-utils.c b/src/core/tests/test-utils.c
index ad9950dd..2bcb6f69 100644
--- a/src/core/tests/test-utils.c
+++ b/src/core/tests/test-utils.c
@@ -234,8 +234,10 @@ test_shorten_hostname(void)
      * system configuration (`getconf HOST_NAME_MAX`). On Linux
      * it's typically 64 characters, but POSIX allows up to
      * 255 characters.
+     *
+     * We use our own define NM_HOST_NAME_MAX, which is always 64.
      */
-    maxhost = g_strnfill(HOST_NAME_MAX, 'a');
+    maxhost = g_strnfill(NM_HOST_NAME_MAX, 'a');
 
     do_test_shorten_hostname("name1", TRUE, NULL);