From: Damien Neil Date: Tue, 8 Aug 2000 18:11:22 +0000 (+0000) Subject: Changed printf "%*s" format to "%.*s". X-Git-Tag: V3-BETA-2-PATCH-1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0dac0b460b85d5ff911676147db45655a8ae6e;p=thirdparty%2Fdhcp.git Changed printf "%*s" format to "%.*s". --- diff --git a/server/db.c b/server/db.c index 776028f38..6ae14e017 100644 --- a/server/db.c +++ b/server/db.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.54 2000/07/27 09:03:02 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.55 2000/08/08 18:11:22 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -622,7 +622,7 @@ int write_billing_class (class) break; if (i == class -> hash_string.len) { errno = 0; - fprintf (db_file, " \"%*s\";", + fprintf (db_file, " \"%.*s\";", class -> hash_string.len, class -> hash_string.data); if (errno)