[DiscordArchive] what do I need to change it to?
[DiscordArchive] what do I need to change it to?
Archived author: Skarn • Posted: 2018-05-17T13:12:32.232000+00:00
Original source
what do I need to change it to?
tring(buf);
tring(strerror_r(errnum, buf, ERRBUF_SIZE));Archived author: Skarn • Posted: 2018-05-17T13:13:22.113000+00:00
Original source
#ifdef _WIN32
strerror_s(buf, ERRBUF_SIZE, errnum); \
return std:
tring(buf);
#else
return std:
tring(strerror_r(errnum, buf, ERRBUF_SIZE));
#endif
Archived author: Skarn • Posted: 2018-05-17T13:13:27.613000+00:00
Original source
I guess here, right?
Archived author: schlumpf • Posted: 2018-05-17T13:13:50.822000+00:00
Original source
If you doN#t error check anyway, you can use the first version everywhere.
tring(buf);
Archived author: Deleted User • Posted: 2018-05-17T13:13:59.642000+00:00
Original source
Strerror_r(errnum, buf, ERRBUF_SIZE);
Return std:
tring(buf);
Archived author: Deleted User • Posted: 2018-05-17T13:14:31.549000+00:00
Original source
In the #Else
![[Image: Screen_Shot_2018-05-17_at_4.15.26_PM.png...d7b1f423c&]](https://cdn.discordapp.com/attachments/408013572430626817/446662124673040398/Screen_Shot_2018-05-17_at_4.15.26_PM.png?ex=690c9f85&is=690b4e05&hm=dc086e94ae2b674649c950873fe2ca85d02ec977d45ec37d4740e4fd7b1f423c&)
Archived author: Skarn • Posted: 2018-05-17T13:15:49.103000+00:00
Original source
![[Image: Screen_Shot_2018-05-17_at_4.15.26_PM.png...d7b1f423c&]](https://cdn.discordapp.com/attachments/408013572430626817/446662124673040398/Screen_Shot_2018-05-17_at_4.15.26_PM.png?ex=690c9f85&is=690b4e05&hm=dc086e94ae2b674649c950873fe2ca85d02ec977d45ec37d4740e4fd7b1f423c&)
Archived author: Deleted User • Posted: 2018-05-17T13:16:18.981000+00:00
Original source
Oh I think I didn’t push that fix
Archived author: Deleted User • Posted: 2018-05-17T13:16:22.332000+00:00
Original source
Only local
Archived author: Skarn • Posted: 2018-05-17T13:16:23.573000+00:00
Original source
sec