Serhiy Storchaka added the comment: > - wcscpy(q+1, link); > + wcsncpy(q+1, link, MAXPATHLEN); > + argv0copy[2*MAXPATHLEN] = L'\0';
Should be `q[MAXPATHLEN] = L'\0';`. Otherwise there will be a bug when a length of link is MAXPATHLEN. ---------- nosy: +serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15905> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com