Skip to contentSkip to conversation

strndup() would better take size_t, not int

PATCH New Al Viro 1 participant 1 message Oct 10, 2006 Networking

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 strndup() would better take size_t, not int

---
 net/irda/irias_object.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/irda/irias_object.c +1 -1
index a154b1d..56292ab 100644
@@ -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