Browse Source

Fix SLC_NAME_OK() macro which would return non-zero, if given the

argument: 0 (which is not a valid SLC code -- valid SLC codes are currently
1 -> 30 inclusive, from RFC-1184).
OPENBSD_2_1
robin 27 years ago
parent
commit
9c0891d48e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/include/arpa/telnet.h

+ 1
- 1
src/include/arpa/telnet.h View File

@ -235,7 +235,7 @@ extern char *slc_names[];
#define SLC_NAMES SLC_NAMELIST
#endif
#define SLC_NAME_OK(x) ((unsigned int)(x) <= NSLC)
#define SLC_NAME_OK(x) ((unsigned)(x) > 0 && (unsigned)(x) <= NSLC)
#define SLC_NAME(x) slc_names[x]
#define SLC_NOSUPPORT 0


Loading…
Cancel
Save