mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-20 18:05:11 -04:00
abort/error: print backtrace, abuse templates, overhaul result/diag (macos not done yet)
This commit is contained in:
parent
18168d54c3
commit
646f84bad1
118 changed files with 2843 additions and 369 deletions
|
@ -394,7 +394,9 @@ namespace ams::util {
|
|||
|
||||
/* Ensure null termination. */
|
||||
WriteCharacter('\0');
|
||||
dst[dst_size - 1] = '\0';
|
||||
if (dst_size > 0) {
|
||||
dst[dst_size - 1] = '\0';
|
||||
}
|
||||
|
||||
/* Return number of characters that would have been printed sans the null terminator. */
|
||||
return static_cast<int>(dst_index) - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue