summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 552cea4)
raw | patch | inline | side by side (parent: 552cea4)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 17 Aug 2016 21:16:47 +0000 (23:16 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 17 Aug 2016 21:16:47 +0000 (23:16 +0200) |
t/unit/utils/unixsock_test.c | patch | blob | history |
index 321a96e7d5d7fd389dc9afa51339ec51718d0132..6ddb6d453abf739fec49a51e13953d213b2d1e1e 100644 (file)
if (last_write)
free(last_write);
- last_write = strdup(buf);
+ last_write = strndup(buf, size);
++c->pos;
return (ssize_t)size;
} /* mock_write */