=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_man.c,v retrieving revision 1.61 retrieving revision 1.62 diff -c -r1.61 -r1.62 *** src/usr.bin/mandoc/mdoc_man.c 2014/04/20 16:44:44 1.61 --- src/usr.bin/mandoc/mdoc_man.c 2014/04/20 19:39:35 1.62 *************** *** 1,4 **** ! /* $Id: mdoc_man.c,v 1.61 2014/04/20 16:44:44 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze * --- 1,4 ---- ! /* $Id: mdoc_man.c,v 1.62 2014/04/20 19:39:35 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze * *************** *** 453,459 **** if (Bl_stack_len) sz += Bl_stack[Bl_stack_len - 1]; ! snprintf(buf, sizeof(buf), "%zun", sz); print_word(buf); outflags |= MMAN_nl; } --- 453,459 ---- if (Bl_stack_len) sz += Bl_stack[Bl_stack_len - 1]; ! (void)snprintf(buf, sizeof(buf), "%zun", sz); print_word(buf); outflags |= MMAN_nl; } *************** *** 506,512 **** remain = sz + 2; } if (numeric) { ! snprintf(buf, sizeof(buf), "%zun", sz + 2); print_word(buf); } else print_word(v); --- 506,512 ---- remain = sz + 2; } if (numeric) { ! (void)snprintf(buf, sizeof(buf), "%zun", sz + 2); print_word(buf); } else print_word(v); *************** *** 516,524 **** static void print_count(int *count) { ! char buf[12]; ! snprintf(buf, sizeof(buf), "%d.", ++*count); print_word(buf); } --- 516,524 ---- static void print_count(int *count) { ! char buf[24]; ! (void)snprintf(buf, sizeof(buf), "%d.", ++*count); print_word(buf); } *************** *** 1312,1318 **** /* Restore the indentation of the enclosing list. */ print_line(".RS", MMAN_Bk_susp); ! snprintf(buf, sizeof(buf), "%zun", Bl_stack[Bl_stack_len - 1]); print_word(buf); /* Remeber to close out this .RS block later. */ --- 1312,1319 ---- /* Restore the indentation of the enclosing list. */ print_line(".RS", MMAN_Bk_susp); ! (void)snprintf(buf, sizeof(buf), "%zun", ! Bl_stack[Bl_stack_len - 1]); print_word(buf); /* Remeber to close out this .RS block later. */