diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2003-06-03 12:51:40 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2003-06-03 12:51:40 +0000 |
commit | 5f6a2902bcfd03976baf4360e5a1ea749a4d0700 (patch) | |
tree | 24420aafdef612d32c1c8988146120967c29f6ce /sbin/isakmpd/constants.c | |
parent | 1fb7088aa35b34099638abe7575434151652e4e5 (diff) |
Cleanup. Use 'sizeof variable' instead of magic constants.
Diffstat (limited to 'sbin/isakmpd/constants.c')
-rw-r--r-- | sbin/isakmpd/constants.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/constants.c b/sbin/isakmpd/constants.c index e587ee3626f..08a85a32e04 100644 --- a/sbin/isakmpd/constants.c +++ b/sbin/isakmpd/constants.c @@ -1,4 +1,4 @@ -/* $OpenBSD: constants.c,v 1.6 1999/04/19 19:54:53 niklas Exp $ */ +/* $OpenBSD: constants.c,v 1.7 2003/06/03 12:51:38 ho Exp $ */ /* $EOM: constants.c,v 1.7 1999/04/02 00:57:31 niklas Exp $ */ /* @@ -82,7 +82,7 @@ constant_name (struct constant_map *map, int value) if (!retval) { - snprintf (tmp, 32, "<Unknown %d>", value); + snprintf (tmp, sizeof tmp, "<Unknown %d>", value); return tmp; } return retval; @@ -101,6 +101,6 @@ constant_name_maps (struct constant_map **maps, int value) if (retval) return retval; } - snprintf (tmp, 32, "<Unknown %d>", value); + snprintf (tmp, sizeof tmp, "<Unknown %d>", value); return tmp; } |