summaryrefslogtreecommitdiffstats
path: root/main/glib/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/strnlen.c')
-rw-r--r--main/glib/strnlen.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/main/glib/strnlen.c b/main/glib/strnlen.c
index f44151f..6d8cee9 100644
--- a/main/glib/strnlen.c
+++ b/main/glib/strnlen.c
@@ -32,11 +32,12 @@ __FBSDID("$FreeBSD$");
size_t
strnlen(const char *s, size_t maxlen)
{
- size_t len;
+ size_t len;
- for (len = 0; len < maxlen; len++, s++) {
- if (!*s)
- break;
- }
- return (len);
+ for(len = 0; len < maxlen; len++, s++) {
+ if(!*s) {
+ break;
+ }
+ }
+ return (len);
}