summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-08-09 16:06:31 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-08-09 16:06:31 +0200
commit432de66fa08a5417e3a08e0aba3cfeba4551aee4 (patch)
treec3c71963125172a436b65d43453d511450c28a4f
parent70d7705aaa7a31436b50976482825e9f8c1f6c4e (diff)
downloadmupdf-432de66fa08a5417e3a08e0aba3cfeba4551aee4.tar.xz
Fix bug 692412: typo in buffer size.
-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)