summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/win_main.c2
-rw-r--r--xps/xps_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/win_main.c b/apps/win_main.c
index aeb23498..517a1c6c 100644
--- a/apps/win_main.c
+++ b/apps/win_main.c
@@ -173,7 +173,7 @@ dlogpassproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
char *winpassword(pdfapp_t *app, char *filename)
{
- char buf[124], *s;
+ char buf[1024], *s;
int code;
strcpy(buf, filename);
s = buf;
diff --git a/xps/xps_common.c b/xps/xps_common.c
index 4e3c30b5..894a4941 100644
--- a/xps/xps_common.c
+++ b/xps/xps_common.c
@@ -225,7 +225,7 @@ xps_parse_color(xps_context *ctx, char *base_uri, char *string,
else if (strstr(string, "ContextColor ") == string)
{
/* Crack the string for profile name and sample values */
- strcpy(buf, string);
+ fz_strlcpy(buf, string, sizeof buf);
profile = strchr(buf, ' ');
if (!profile)