Commit b749134
Fix strncpy truncation warning in Vulkan device selection
Replace strncpy with memset+memcpy to avoid GCC -Wstringop-truncation
warning when copying device name.
Relates to #9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 836e117 commit b749134
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
0 commit comments