[Bug 1663] dumplease not show end symbol at client hostname

bugzilla at busybox.net bugzilla at busybox.net
Fri Apr 30 15:13:56 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=1663





--- Comment #2 from Evgeniy Manachkin <sfstudio at mail.ru>  2010-04-30 15:13:56 UTC ---
This patch fix it:

--- leases.c.orig       2010-04-30 22:12:47.000000000 +0700                     
+++ leases.c    2010-04-30 22:05:18.143207528 +0700                             
@@ -66,7 +66,7 @@                                                               
                        char *p;                                                
                        if (hostname_len > sizeof(oldest->hostname))            
                                hostname_len = sizeof(oldest->hostname);        
-                       p = safe_strncpy(oldest->hostname, hostname,
hostname_len);                                           
+                       p = safe_strncpy(oldest->hostname, hostname,
hostname_len + 1);                                       
                        /* sanitization (s/non-ASCII/^/g) */                    
                        while (*p) {                                            
                                if (*p < ' ' || *p > 126)                       



-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list