Commit 5d9599e
committed
Replace deprecated sprintf with snprintf
This replaces unsafe sprintf with snprintf to address security concerns
and compiler deprecation warning on macOS.
The change explicitly specifies buffer size to prevent potential buffer
overflows while maintaining the same functionality.1 parent f29a741 commit 5d9599e
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