@@ -132,7 +132,7 @@ error gui_init(HWND const window) {
132
132
133
133
int save_mode_height = padding ;
134
134
{
135
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Processing mode:" ));
135
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Processing mode:" ));
136
136
HWND h = CreateWindowExW (0 ,
137
137
L"STATIC" ,
138
138
buf ,
@@ -161,11 +161,11 @@ error gui_init(HWND const window) {
161
161
(HMENU )1 ,
162
162
hinst ,
163
163
NULL );
164
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Auto detect" ));
164
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Auto detect" ));
165
165
SendMessageW (h , CB_ADDSTRING , 0 , (LPARAM )buf );
166
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Copy" ));
166
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Copy" ));
167
167
SendMessageW (h , CB_ADDSTRING , 0 , (LPARAM )buf );
168
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Direct read" ));
168
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Direct read" ));
169
169
SendMessageW (h , CB_ADDSTRING , 0 , (LPARAM )buf );
170
170
SendMessageW (h , WM_SETFONT , (WPARAM )font , 0 );
171
171
save_mode_height += control_height ;
@@ -175,7 +175,7 @@ error gui_init(HWND const window) {
175
175
int save_dir_height = padding ;
176
176
{
177
177
int const button_width = font_height * 2 ;
178
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Save to:" ));
178
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Save to:" ));
179
179
HWND h = CreateWindowExW (0 ,
180
180
L"STATIC" ,
181
181
buf ,
@@ -228,7 +228,7 @@ error gui_init(HWND const window) {
228
228
enum {
229
229
button_width = 128 ,
230
230
};
231
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Revert to initial" ));
231
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Revert to initial" ));
232
232
HWND h = CreateWindowExW (0 ,
233
233
L"BUTTON" ,
234
234
buf ,
@@ -243,7 +243,7 @@ error gui_init(HWND const window) {
243
243
NULL );
244
244
SendMessageW (h , WM_SETFONT , (WPARAM )font , 0 );
245
245
g_restore_initial = h ;
246
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Revert to default" ));
246
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Revert to default" ));
247
247
h = CreateWindowExW (0 ,
248
248
L"BUTTON" ,
249
249
buf ,
@@ -258,7 +258,7 @@ error gui_init(HWND const window) {
258
258
NULL );
259
259
SendMessageW (h , WM_SETFONT , (WPARAM )font , 0 );
260
260
g_restore_default = h ;
261
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Save as default" ));
261
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Save as default" ));
262
262
h = CreateWindowExW (0 ,
263
263
L"BUTTON" ,
264
264
buf ,
@@ -393,7 +393,7 @@ NODISCARD static error click_select_folder_button(HWND const window) {
393
393
buf_size = 1024 ,
394
394
};
395
395
wchar_t buf [buf_size ];
396
- mo_sprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Choose Save Directory" ));
396
+ mo_snprintf_wchar (buf , buf_size , NULL , "%1$s" , gettext ("Choose Save Directory" ));
397
397
err = select_directory (window , & wstr_unmanaged (buf ), & dir , & ret );
398
398
if (efailed (err )) {
399
399
err = ethru (err );
0 commit comments