From 27f12c173d57d09d095d0e5ecfeb18acf5d2434a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Mar 2008 10:38:07 +0000 Subject: use size_t When dealing with in-memory lengths, the standard type "size_t" should be used. Missing one can be quite dangerous, because an attacker could provoke an integer under-/overflow, which may provide an attack vector. git-svn-id: https://svn.musicpd.org/mpd/trunk@7205 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interface.h') diff --git a/src/interface.h b/src/interface.h index 70ba424dc..389e47136 100644 --- a/src/interface.h +++ b/src/interface.h @@ -26,7 +26,7 @@ void initInterfaces(void); void openAInterface(int fd, struct sockaddr *addr); void freeAllInterfaces(void); void closeOldInterfaces(void); -int interfacePrintWithFD(int fd, char *buffer, int len); +int interfacePrintWithFD(int fd, char *buffer, size_t len); int doIOForInterfaces(void); -- cgit v1.2.3