summaryrefslogtreecommitdiff
path: root/common/print.c
diff options
context:
space:
mode:
authorMark Andrews <marka@isc.org>2013-05-15 10:49:54 +1000
committerMark Andrews <marka@isc.org>2013-05-15 10:49:54 +1000
commitdc9d7b08aa62743e7cbfb1795c324b3c1773ecd0 (patch)
tree5f15f5dc67d166c072f276867a0172071bcaff9f /common/print.c
parent7133470475b841299f06487039be10003d020456 (diff)
downloadisc-dhcp-dc9d7b08aa62743e7cbfb1795c324b3c1773ecd0.tar.gz
- Silence benign static analysis warnings.
[ISC-Bugs #33428]
Diffstat (limited to 'common/print.c')
-rw-r--r--common/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/print.c b/common/print.c
index b113bec1..04c453a4 100644
--- a/common/print.c
+++ b/common/print.c
@@ -3,7 +3,7 @@
Turn data structures into printable text. */
/*
- * Copyright (c) 2009-2012 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2009-2013 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1995-2003 by Internet Software Consortium
*
@@ -1193,7 +1193,7 @@ int token_print_indent_concat (FILE *file, int col, int indent,
}
va_end (list);
- len = token_print_indent (file, col, indent,
+ col = token_print_indent (file, col, indent,
prefix, suffix, t);
dfree (t, MDL);
return col;
@@ -1248,7 +1248,7 @@ int token_print_indent (FILE *file, int col, int indent,
{
int len = 0;
if (prefix != NULL)
- len = strlen (prefix);
+ len += strlen (prefix);
if (buf != NULL)
len += strlen (buf);