From c3debb029030818e49001b6c16d2af05746762e9 Mon Sep 17 00:00:00 2001 From: yancey Date: Sat, 22 Jul 2023 14:45:53 -0400 Subject: [PATCH] sync udp2raw bugfix --- common.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common.cpp b/common.cpp index c36293d..8e61cb8 100644 --- a/common.cpp +++ b/common.cpp @@ -895,8 +895,8 @@ int new_connected_socket2(int &fd, address_t &addr, address_t *bind_addr, char * u32_t djb2(unsigned char *str, int len) { u32_t hash = 5381; int c; - int i = 0; - while (c = *str++, i++ != len) { + for (int i=0; i string_to_vec(const char *s, const char *sp) { vector res; string str = s;