projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c510f98
)
util: remove utilStrDupLen as it was unused
author
Robert Swiecki
<robert@swiecki.net>
Sun, 28 May 2017 16:59:50 +0000
(18:59 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 28 May 2017 16:59:50 +0000
(18:59 +0200)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index a226d1c38cc426177ed8423591bd172d2a87f441..0132d7c54fc6c1f920924227b1ca640118de9341 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-62,14
+62,6
@@
char *utilStrDup(const char *str)
return ret;
}
-char *utilStrDupLen(const char *str, size_t len)
-{
- char *ret = utilMalloc(len + 1);
- memcpy(ret, str, len);
- ret[len] = '\0';
- return ret;
-}
-
uint8_t *utilMemDup(const uint8_t * src, size_t len)
{
if (src == NULL) {