Compare commits
No commits in common. 'c8' and 'i8c-beta' have entirely different histories.
@ -0,0 +1,11 @@
|
|||||||
|
--- a/db.c 2000-10-01 01:39:58.000000000 +0200
|
||||||
|
+++ b/db.c 2024-01-03 10:29:20.367656089 +0100
|
||||||
|
@@ -62,7 +62,7 @@
|
||||||
|
/* Ethernet info */
|
||||||
|
struct einfo {
|
||||||
|
u_char e[6]; /* ether address */
|
||||||
|
- char h[34]; /* simple hostname */
|
||||||
|
+ char h[64]; /* simple hostname */
|
||||||
|
time_t t; /* timestamp */
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
--- a/db.c 2024-01-03 10:36:30.009600848 +0100
|
||||||
|
+++ b/db.c 2024-02-21 11:35:04.420115207 +0100
|
||||||
|
@@ -283,8 +283,10 @@
|
||||||
|
BCOPY(e, ep->e, 6);
|
||||||
|
if (h == NULL && !initializing)
|
||||||
|
h = getsname(a);
|
||||||
|
- if (h != NULL && !isdigit((int)*h))
|
||||||
|
- strcpy(ep->h, h);
|
||||||
|
+ if (h != NULL) {
|
||||||
|
+ strncpy(ep->h, h, sizeof(ep->h));
|
||||||
|
+ ep->h[sizeof(ep->h) - 1] = '\0';
|
||||||
|
+ }
|
||||||
|
ep->t = t;
|
||||||
|
return (ep);
|
||||||
|
}
|
Loading…
Reference in new issue