]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Put hostname in quotes
authorTed Lemon <source@isc.org>
Tue, 7 Oct 1997 19:59:31 +0000 (19:59 +0000)
committerTed Lemon <source@isc.org>
Tue, 7 Oct 1997 19:59:31 +0000 (19:59 +0000)
server/db.c

index c3c0a2682655b8ed09e1c18a16068cd6b865c977..e7757676428ce5e01826f70afef2ad754eb2e5a4 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: db.c,v 1.13 1997/06/10 05:49:15 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: db.c,v 1.14 1997/10/07 19:59:31 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -143,7 +143,7 @@ int write_lease (lease)
        }
        if (lease -> hostname) {
                errno = 0;
-               fprintf (db_file, "\n\thostname %s;",
+               fprintf (db_file, "\n\thostname \"%s\";",
                         lease -> client_hostname);
                if (errno) {
                        ++errors;