summaryrefslogtreecommitdiff
path: root/apps/win_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/win_main.c')
-rw-r--r--apps/win_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/win_main.c b/apps/win_main.c
index 18c110eb..70021399 100644
--- a/apps/win_main.c
+++ b/apps/win_main.c
@@ -396,7 +396,7 @@ char *wintextinput(pdfapp_t *app, char *inittext, int retry)
{
int code;
td_retry = retry;
- strncpy(td_textinput, inittext?inittext:"", sizeof(td_textinput));
+ fz_strlcpy(td_textinput, inittext ? inittext : "", sizeof td_textinput);
code = DialogBoxW(NULL, L"IDD_DLOGTEXT", hwndframe, dlogtextproc);
if (code <= 0)
winerror(app, "cannot create text input dialog");