Commit f521ca5
committed
Replace deprecated sprintf with snprintf
This change replaces the unsafe use of sprintf with snprintf to address
security concerns and resolve a compiler deprecation warning on macOS.
By explicitly specifying the buffer size, it prevents potential buffer
overflows while preserving the same functionality.1 parent f29a741 commit f521ca5
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| |||
0 commit comments