libtelnet: Some small updates to sra.c from NetBSD
authorAaron LI <aly@aaronly.me>
Thu, 5 Jul 2018 08:47:29 +0000 (16:47 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 5 Jul 2018 09:15:32 +0000 (17:15 +0800)
commit53bdbccdd1ed7c593c68402516183bfe1f21a1be
tree854799e8ef614766cfa4c5888f8563338b0346d7
parent681546acfcc2c4cf04f3af2168841b5d27327966
libtelnet: Some small updates to sra.c from NetBSD

* Define 'SMALL_LEN' and 'XSMALL_LEN' to replace the explicit numbers.
  (also replaced the original PASS_SIZE)

* Use 'strlcpy()' and 'snprintf()' when appropriate.

* Clean some type casts.

* Some style(9) tweaks.
lib/libtelnet/sra.c