On Sun, Oct 28, 2018 at 08:42:55AM -0500, Edgar Pettijohn III wrote: > >Synopsis: xenodm truncates xlogin.Login.namePrompt and > xlogin.Login.passwdPrompt > >Category: user > >Environment: > System : OpenBSD 6.4 > Details : OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT > 2018 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > >Description: > I have the following in /etc/X11/xenodm/Xresources: > > xlogin.Login.namePrompt: login > xlogin.Login.passwdPrompt: passwd > > However, when the login screen pops up it shows the following: > > logi > passw
Hi, the patch below should fix it: Index: app/xenodm/greeter/Login.c =================================================================== RCS file: /cvs/OpenBSD/xenocara/app/xenodm/greeter/Login.c,v retrieving revision 1.4 diff -u -p -u -r1.4 Login.c --- app/xenodm/greeter/Login.c 11 Jul 2018 16:28:54 -0000 1.4 +++ app/xenodm/greeter/Login.c 28 Oct 2018 17:18:23 -0000 @@ -754,7 +754,7 @@ SetPrompt (Widget ctx, int promptNum, co return -1; } - strlcpy(prompt, message, messageLen); + strlcpy(prompt, message, messageLen+3); /* Make sure text prompts have at least two spaces at end */ e = messageLen; -- Matthieu Herrb