--- tftpd/src/buf.c 2014/02/24 22:28:54 1.3 +++ tftpd/src/buf.c 2017/01/22 21:00:33 1.3.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: buf.c,v 1.3 2014/02/24 22:28:54 misho Exp $ +* $Id: buf.c,v 1.3.2.1 2017/01/22 21:00:33 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2017 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -83,7 +83,7 @@ flushBuffer(int fd) m = cfg_getAttribute(&cfg, "tftpd", "buf_pad"); if (m && RPACK_OFF(bf) && RPACK_REMAIN(bf)) { memset(RPACK_NEXT(bf), (u_char) strtol(m, NULL, 0), RPACK_REMAIN(bf)); - EVERBOSE(4, "Padding buffer with '%c' len=%d", *m, RPACK_REMAIN(bf)); + EVERBOSE(4, "Padding buffer with '%c' len=%lu", *m, (u_long) RPACK_REMAIN(bf)); rpack_rnext(bf, RPACK_REMAIN(bf)); }