eliminated C99 dependency
This commit is contained in:
parent
5d25d2a1bc
commit
f73647de18
1 changed files with 2 additions and 1 deletions
|
|
@ -3181,10 +3181,11 @@ static void mainloop(void)
|
|||
if (tmp != NULL)
|
||||
{
|
||||
int exceeded;
|
||||
int i;
|
||||
|
||||
mbstowcs(tmp, pasted_txt, n); /* at most n wchar_t written */
|
||||
exceeded = 0;
|
||||
for (int i = 0; tmp[i] != '\0' && !exceeded; i++)
|
||||
for (i = 0; tmp[i] != '\0' && !exceeded; i++)
|
||||
{
|
||||
if (tmp[i] == '\n')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue