summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-06-25 15:43:14 +0100
committerRobin Watts <robin.watts@artifex.com>2012-06-25 15:43:14 +0100
commit8de9bfd5c1e62fc9cdcd720303c15edd251a7c2c (patch)
tree15f8842366e497b5a301f118895bb1749a01a04b /fitz
parentf35c11d2852e8878f977145e3d2fd20f29eaf485 (diff)
downloadmupdf-8de9bfd5c1e62fc9cdcd720303c15edd251a7c2c.tar.xz
Fix warnings/compile error on linux.
min is a windows only define.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/stm_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/stm_buffer.c b/fitz/stm_buffer.c
index 1202617e..a4b65cac 100644
--- a/fitz/stm_buffer.c
+++ b/fitz/stm_buffer.c
@@ -196,7 +196,7 @@ fz_buffer_cat_pdf_string(fz_context *ctx, fz_buffer *buffer, const char *text)
char *d;
char c;
- while (c = *s++)
+ while ((c = *s++) != 0)
{
switch (c)
{
@@ -220,7 +220,7 @@ fz_buffer_cat_pdf_string(fz_context *ctx, fz_buffer *buffer, const char *text)
s = text;
d = (char *)buffer->data + buffer->len;
*d++ = '(';
- while (c = *s++)
+ while ((c = *s++) != 0)
{
switch (c)
{