eliminated C99 dependency

This commit is contained in:
dolphin6k 2025-04-02 21:42:26 +09:00
parent 5d25d2a1bc
commit f73647de18

View file

@ -3181,10 +3181,11 @@ static void mainloop(void)
if (tmp != NULL) if (tmp != NULL)
{ {
int exceeded; int exceeded;
int i;
mbstowcs(tmp, pasted_txt, n); /* at most n wchar_t written */ mbstowcs(tmp, pasted_txt, n); /* at most n wchar_t written */
exceeded = 0; exceeded = 0;
for (int i = 0; tmp[i] != '\0' && !exceeded; i++) for (i = 0; tmp[i] != '\0' && !exceeded; i++)
{ {
if (tmp[i] == '\n') if (tmp[i] == '\n')
{ {