diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-08-09 16:06:31 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-08-09 16:06:31 +0200 |
commit | 432de66fa08a5417e3a08e0aba3cfeba4551aee4 (patch) | |
tree | c3c71963125172a436b65d43453d511450c28a4f | |
parent | 70d7705aaa7a31436b50976482825e9f8c1f6c4e (diff) | |
download | mupdf-432de66fa08a5417e3a08e0aba3cfeba4551aee4.tar.xz |
Fix bug 692412: typo in buffer size.
-rw-r--r-- | apps/win_main.c | 2 | ||||
-rw-r--r-- | 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) |