Line 0
Link Here
|
|
|
1 |
--- ec.c.orig 2018-09-24 09:56:56 UTC |
2 |
+++ ec.c |
3 |
@@ -201,7 +201,7 @@ str2e(register char *str, register u_cha |
4 |
u_int n[6]; |
5 |
|
6 |
MEMSET(n, 0, sizeof(n)); |
7 |
- if (sscanf(str, "%x:%x:%x:%x:%x:%x", |
8 |
+ if (sscanf(str, "%02x:%02x:%02x:%02x:%02x:%02x", |
9 |
&n[0], &n[1], &n[2], &n[3], &n[4], &n[5]) != 6) |
10 |
return (0); |
11 |
for (i = 0; i < 6; ++i) { |
12 |
@@ -218,7 +218,7 @@ e2str(register u_char *e) |
13 |
{ |
14 |
static char str[32]; |
15 |
|
16 |
- (void)sprintf(str, "%x:%x:%x:%x:%x:%x", |
17 |
+ (void)sprintf(str, "%02x:%02x:%02x:%02x:%02x:%02x", |
18 |
e[0], e[1], e[2], e[3], e[4], e[5]); |
19 |
return (str); |
20 |
} |