diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-04-18 22:32:59 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-04-18 23:09:18 +0200 |
commit | d1ce35d2271ac8b79cb5e37677b1a989749e611c (patch) | |
tree | cafccb161304bf0f00320c4cc0e5966b8e8f6a39 /rts/RtsUtils.h | |
parent | 350ffc3e4c6b3aefd6ae621991564cc28f585d46 (diff) | |
download | haskell-d1ce35d2271ac8b79cb5e37677b1a989749e611c.tar.gz |
rts: Don't use strndup
Reviewers: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2125
Diffstat (limited to 'rts/RtsUtils.h')
-rw-r--r-- | rts/RtsUtils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/RtsUtils.h b/rts/RtsUtils.h index 5d825a2118..d76c921a36 100644 --- a/rts/RtsUtils.h +++ b/rts/RtsUtils.h @@ -26,6 +26,8 @@ void *stgReallocBytes(void *p, int n, char *msg); void *stgCallocBytes(int n, int m, char *msg) GNUC3_ATTRIBUTE(__malloc__); +char *stgStrndup(const char *s, size_t n); + void stgFree(void* p); /* ----------------------------------------------------------------------------- |