Skip to content

Commit

Permalink
Provide own strndup if necessary (confluentinc#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill authored and ah- committed Dec 29, 2015
1 parent aafe783 commit 7ec5fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rd.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static __inline RD_UNUSED char *rd_strdup(const char *s) {
}

static __inline RD_UNUSED char *rd_strndup(const char *s, size_t len) {
#ifndef _MSC_VER
#if HAVE_STRNDUP
char *n = strndup(s, len);
assert(n);
#else
Expand Down

0 comments on commit 7ec5fec

Please sign in to comment.