[PATCH 17/19] telnet: Fix build with GCC 14