]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Changed printf "%*s" format to "%.*s".
authorDamien Neil <source@isc.org>
Tue, 8 Aug 2000 18:11:22 +0000 (18:11 +0000)
committerDamien Neil <source@isc.org>
Tue, 8 Aug 2000 18:11:22 +0000 (18:11 +0000)
server/db.c

index 776028f38f98fcb4e4d218b821328f8ee9e7d4ed..6ae14e0170f7073ef63ab2106846a27697eaca5f 100644 (file)
@@ -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)