]>
Commit | Line | Data |
---|---|---|
7568c854 | 1 | --- bsd-finger-0.17-pre20000412/fingerd/fingerd.c.rfc742 Sat Jul 22 14:58:58 2000 |
2 | +++ bsd-finger-0.17-pre20000412/fingerd/fingerd.c Sat Jul 22 15:01:31 2000 | |
3 | @@ -214,7 +214,11 @@ | |
4 | av[k++] = "finger"; | |
5 | for (s = strtok(line, WS); s && k<ENTRIES; s = strtok(NULL, WS)) { | |
6 | /* RFC742: "/[Ww]" == "-l" */ | |
7 | - if (!strncasecmp(s, "/w", 2)) memcpy(s, "-l", 2); | |
8 | + if (!strncasecmp(s, "/w", 2)) { | |
9 | + if (k < ENTRIES - 1) | |
10 | + av[k++] = "-l"; | |
11 | + s += 2; | |
12 | + } | |
13 | if (!forwarding) { | |
14 | t = strchr(s, '@'); | |
15 | if (t) { |