diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 18:50:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 18:50:11 +0000 |
commit | 314f1f1e699245ecd79579db7c40c4fa85b0d484 (patch) | |
tree | 83b506322728dc6a507484557d54518360fe5e07 /html.c | |
parent | 6743cd2838c98a6c8127771ac05c6695131f26f5 (diff) | |
download | mandoc-314f1f1e699245ecd79579db7c40c4fa85b0d484.tar.gz mandoc-314f1f1e699245ecd79579db7c40c4fa85b0d484.tar.zst mandoc-314f1f1e699245ecd79579db7c40c4fa85b0d484.zip |
Lint fixes.
Made realloc puke with fprintf.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.72 2009/10/30 18:43:24 kristaps Exp $ */ +/* $Id: html.c,v 1.73 2009/10/30 18:50:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -673,7 +673,7 @@ html_idcat(char *dst, const char *src, int sz) sz--; for ( ; *src != '\0' && sz > 1; src++) { - ssz = snprintf(dst, sz, "%.2x", *src); + ssz = snprintf(dst, (size_t)sz, "%.2x", *src); sz -= ssz; dst += ssz; } |