strndup() would better take size_t, not int
PATCH 1/1 strndup() would better take size_t, not int
Signed-off-by Al Viro <[email protected]>
--- net/irda/irias_object.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/irda/irias_object.c +1 -1
@@ -43,7 +43,7 @@ struct ias_value irias_missing = { IAS_M* * Faster, check boundary... Jean II */ -static char *strndup (char *str,int max) +static char *strndup (char *str,size_t max) {char *new_str;int len;
Signature · 1 line
1.4.2.GIT