author | Sebastian Harl <sh@tokkee.org> | |
Sun, 20 Apr 2008 21:20:45 +0000 (23:20 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Wed, 23 Apr 2008 13:40:26 +0000 (15:40 +0200) | ||
commit | 5f9ec13b946733ff4e1edf2d8e3b7a22311dd894 | |
tree | a108165fbaf7e8eaa03091dc40a1d2ebca18bc9d | tree | snapshot |
parent | 2354eda94fa44c8bcb8e39b24b117e7937110224 | commit | diff |
Unified string handling.
sstrncpy() and the newly added function ssnprintf() are now used all over
the place to make sure strings are null terminated. This removes quite
some duplicate code that was found all over the place and thus fairly
increases overall readability of the code. Also sizeof() is used instead
of hard-coded constants where appropriate to determine the available
space.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
sstrncpy() and the newly added function ssnprintf() are now used all over
the place to make sure strings are null terminated. This removes quite
some duplicate code that was found all over the place and thus fairly
increases overall readability of the code. Also sizeof() is used instead
of hard-coded constants where appropriate to determine the available
space.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
57 files changed: