From 432de66fa08a5417e3a08e0aba3cfeba4551aee4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 9 Aug 2011 16:06:31 +0200 Subject: Fix bug 692412: typo in buffer size. --- apps/win_main.c | 2 +- xps/xps_common.c | 2 +- 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) -- cgit v1.2.3