Skip to content

Commit

Permalink
Fix for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Apr 9, 2015
1 parent 4942200 commit 75df806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/tmpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ vp_tmpl_t *tmpl_alloc(TALLOC_CTX *ctx, tmpl_type_t type, char const *name, ssize
if (!vpt) return NULL;
vpt->type = type;
if (name) {
vpt->name = talloc_bstrndup(vpt, name, len < 0 ? strlen(name) : len);
vpt->name = talloc_bstrndup(vpt, name, len < 0 ? strlen(name) : (size_t)len);
vpt->len = talloc_array_length(vpt->name) - 1;
}

Expand Down

0 comments on commit 75df806

Please sign in to comment.