mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
CLI: change uses of sprintf into snprintf
This commit is contained in:
parent
c151d2d135
commit
1bd33b7476
@ -321,7 +321,7 @@ const char* ps_title_errno(int rc)
|
||||
|
||||
#ifdef PS_USE_WIN32
|
||||
case PS_TITLE_WINDOWS_ERROR:
|
||||
sprintf(windows_error_details, "Windows error code: %lu", GetLastError());
|
||||
snprintf(windows_error_details, sizeof(windows_error_details), "Windows error code: %lu", GetLastError());
|
||||
return windows_error_details;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user