|
1 | 1 | /* |
2 | | - * Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/> |
3 | | - * (C) 2020 Vladimir Sadovnikov <[email protected]> |
| 2 | + * Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/> |
| 3 | + * (C) 2025 Vladimir Sadovnikov <[email protected]> |
4 | 4 | * |
5 | 5 | * This file is part of lsp-runtime-lib |
6 | 6 | * Created on: 18 мар. 2019 г. |
@@ -141,16 +141,16 @@ UTEST_BEGIN("runtime.io", dir) |
141 | 141 | char path[PATH_MAX]; |
142 | 142 | char c = FILE_SEPARATOR_C; |
143 | 143 |
|
144 | | - ::sprintf(path, "%s" "%c" "io" "%c" "iconv", |
| 144 | + ::snprintf(path, sizeof(path), "%s" "%c" "io" "%c" "iconv", |
145 | 145 | resources(), c, c); |
146 | 146 |
|
147 | 147 | testReadDir(path, false); |
148 | 148 | testReadDir(path, true); |
149 | 149 |
|
150 | | - ::sprintf(path, "some" "%c" "long" "%c" "path", c, c); |
| 150 | + ::snprintf(path, sizeof(path), "some" "%c" "long" "%c" "path", c, c); |
151 | 151 | testCreateDir(path, true); |
152 | 152 |
|
153 | | - ::sprintf(path, "another" "%c" "long" "%c" "path", c, c); |
| 153 | + ::snprintf(path, sizeof(path), "another" "%c" "long" "%c" "path", c, c); |
154 | 154 | testCreateDir(path, false); |
155 | 155 | } |
156 | 156 |
|
|
0 commit comments