Browse Source

core: init the len of sock_str attribute

Daniel-Constantin Mierla 15 years ago
parent
commit
f0d89fb89d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      socket_info.c

+ 1 - 0
socket_info.c

@@ -363,6 +363,7 @@ static int fix_sock_str(struct socket_info* si)
 		return -1;
 		return -1;
 	}
 	}
 	si->sock_str.s[len] = '\0';
 	si->sock_str.s[len] = '\0';
+	si->sock_str.len = len;
 	return 0;
 	return 0;
 }
 }