There [1][2] we use strcpy, first arg may contain MAX_PATH+100 (355) chars, but second arg may contain 32,767 chars [3]
[1] https://github.com/bitcoin/bitcoin/blob/master/src/util.cpp#L820 [2] https://github.com/bitcoin/bitcoin/blob/master/src/util.cpp#L825 [3] http://msdn.microsoft.com/en-us/library/windows/desktop/ms682653(v=vs.85).aspx