Avoid using the same buffer

This commit is contained in:
Arun Prakash Jana 2018-11-07 04:27:53 +05:30
parent 3cf81482a4
commit d3d9d1ed3a
No known key found for this signature in database
GPG key ID: A75979F35C080412

4
nnn.c
View file

@ -1303,9 +1303,9 @@ END:
settimeout();
DPRINTF_S(buf);
wcstombs(g_buf, buf, NAME_MAX);
wcstombs(g_buf + ((NAME_MAX + 1) << 4), buf, NAME_MAX);
clearprompt();
return g_buf;
return g_buf + ((NAME_MAX + 1) << 4);
}
/*