Remove trailing whitespace in OSD strings.

This commit is contained in:
sorgelig
2017-06-29 01:32:51 +08:00
parent d561607f0e
commit a0ff6169f6

5
menu.c
View File

@@ -901,6 +901,11 @@ void HandleUI(void)
s[0] = ' ';
substrcpy(s + 1, p, 1);
char *end = s + strlen(s) - 1;
while ((end > s+1) && (*end == ' ')) end--;
*(end + 1) = 0;
strcat(s, ":");
l = 28 - l - strlen(s);
while (l--) strcat(s, " ");