chiark / gitweb /
[PATCH] rename strn*() macros to strmax
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Wed, 10 Mar 2004 03:50:15 +0000 (19:50 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:08 +0000 (21:35 -0700)
commit17794d77b97fcb8af263bcecbe03dad5d0e9a89a
treefc87f4d731a6543aaae346875768ff57fc85413a
parent3f20eac0a58dc3987200773a39163e30b60993fc
[PATCH] rename strn*() macros to strmax

Hey, I wrote the strn*() macros just 10 days ago and yesterday this trap
caught me with the %c{x} bug.
The names are misleading cause we all expect that the from field is limited by
the size argument, but we actually limit the overall size of the destination
string to prevent a overflow.

Here we rename all strn*() macros to str*max(). That should be
more self-explanatory.
namedev.c
udev-add.c
udev-remove.c
udev.h
udev_config.c
udevdb.c