miscellaneous: fixed current misspell-check's findings

Reference(s):
https://github.com/lyda/misspell-check

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner 2013-03-11 00:00:00 -06:00 committed by Jaromir Capik
parent fe75e26ab6
commit fac3b34ff9
4 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ with others.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob_plain;f=Documentation/CodingStyle http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob_plain;f=Documentation/CodingStyle
In addtion to Linux coding style this project has few additional In addition to Linux coding style this project has few additional
wishes to contributors. wishes to contributors.
* Many small patches are favoured over one big. Break down is done on * Many small patches are favoured over one big. Break down is done on

View File

@ -29,7 +29,7 @@ Supply data for the ADDR and JOBC fields.
Support & supply data for SL and RE. Support & supply data for SL and RE.
Add a /proc/*/tty symlink to eliminate guessing when /proc/*/fd is Add a /proc/*/tty symlink to eliminate guessing when /proc/*/fd is
not accessable. not accessible.
Add /proc/*/.bindata files to avoid string parsing. It should be an array Add /proc/*/.bindata files to avoid string parsing. It should be an array
of 64-bit values on all machines. New entries go on the end and obsolete of 64-bit values on all machines. New entries go on the end and obsolete

View File

@ -1,7 +1,7 @@
/* /*
* Suite version information for procps-ng utilities * Suite version information for procps-ng utilities
* Copyright (c) 1995 Martin Schulze <joey@infodrom.north.de> * Copyright (c) 1995 Martin Schulze <joey@infodrom.north.de>
* Ammended by cblake to only export the function symbol. * Amended by cblake to only export the function symbol.
* *
* Modified by Albert Cahalan, ????-2003 * Modified by Albert Cahalan, ????-2003
* *

2
w.c
View File

@ -198,7 +198,7 @@ static void print_from(const utmp_t *restrict const u, const int ip_addresses, c
if (!inet_ntop(AF_INET6, &ut_addr_v6, buf_ipv6, sizeof(buf_ipv6))) { if (!inet_ntop(AF_INET6, &ut_addr_v6, buf_ipv6, sizeof(buf_ipv6))) {
strcpy(buf, ""); /* invalid address, clean the buffer */ strcpy(buf, ""); /* invalid address, clean the buffer */
} else { } else {
strncpy(buf, buf_ipv6, fromlen); /* adress valid, copy to buffer */ strncpy(buf, buf_ipv6, fromlen); /* address valid, copy to buffer */
} }
} else { } else {
/* IPv4 */ /* IPv4 */