summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_string.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_string.c b/src/nxt_string.c
index 79dfe72d..fb1cafd6 100644
--- a/src/nxt_string.c
+++ b/src/nxt_string.c
@@ -17,7 +17,7 @@ nxt_str_alloc(nxt_mp_t *mp, size_t length)
if (nxt_fast_path(s != NULL)) {
s->length = length;
- s->start = (u_char *) s + sizeof(nxt_str_t);
+ s->start = nxt_pointer_to(s, sizeof(nxt_str_t));
}
return s;