Skip to content

Commit 1bd33b7

Browse files
committed
CLI: change uses of sprintf into snprintf
1 parent c151d2d commit 1bd33b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/ps_title.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ const char* ps_title_errno(int rc)
321321

322322
#ifdef PS_USE_WIN32
323323
case PS_TITLE_WINDOWS_ERROR:
324-
sprintf(windows_error_details, "Windows error code: %lu", GetLastError());
324+
snprintf(windows_error_details, sizeof(windows_error_details), "Windows error code: %lu", GetLastError());
325325
return windows_error_details;
326326
#endif
327327
}

0 commit comments

Comments
 (0)