/
index
/
libcext.git
/ blobdiff
commit
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add fgetln
[libcext.git]
/
strdup.h
diff --git
a/strdup.h
b/strdup.h
index 34617eaf4dff42ef26341f5293c134b537e8cb5f..b7f1e3eec9caed5015916183edbd0c12d11d09d7 100644
(file)
--- a/
strdup.h
+++ b/
strdup.h
@@
-46,10
+46,8
@@
char *i_strndup_(const char *s, size_t n);
char *
i_strdup_(const char *s)
{
- char *t = s;
-
/* avoid calling strlen twice by passing the maximum */
- return i_strndup_(s, ~(size_t)
0);
+ return i_strndup_(s, ~(size_t)0);
}
char *