diff options
Diffstat (limited to 'arptables.c')
-rw-r--r-- | arptables.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arptables.c b/arptables.c index 4e9af67..403dae4 100644 --- a/arptables.c +++ b/arptables.c @@ -468,7 +468,7 @@ exit_printhelp(void) struct arptables_target *t = NULL; int i; - printf("%s v%s\n\n" + printf("%s v%s (legacy)\n\n" "Usage: %s -[AD] chain rule-specification [options]\n" " %s -[RI] chain rulenum rule-specification [options]\n" " %s -D chain rulenum [options]\n" @@ -844,7 +844,7 @@ parse_interface(const char *arg, char *vianame, unsigned char *mask) if (!isalnum(vianame[i]) && vianame[i] != '_' && vianame[i] != '.') { - printf("Warning: wierd character in interface" + printf("Warning: weird character in interface" " `%s' (No aliases, :, ! or *).\n", vianame); break; @@ -2065,8 +2065,7 @@ int do_command(int argc, char *argv[], char **table, arptc_handle_t *handle) target->t = fw_calloc(1, size); target->t->u.target_size = size; - strncpy(target->t->u.user.name, jumpto, sizeof(target->t->u.user.name)); - target->t->u.user.name[sizeof(target->t->u.user.name)-1] = '\0'; + strncpy(target->t->u.user.name, jumpto, sizeof(target->t->u.user.name) - 1); target->t->u.user.revision = target->revision; /* target->init(target->t, &fw.nfcache); |