I think 'computer comment string' buffer is very short. maximum number of characters in 'computer comment string' is 48 in the Windows2000. and Chinese, Japanese, Korean symbols in general need three UTF-8 bytes. thus, 'computer comment string' buffer needs 48 * 3 = 144 bytes. here is a patch. --- nmbd_incomingdgrams.c.orig 2005-05-14 19:09:39.000000000 +0900 +++ nmbd_incomingdgrams.c 2005-05-14 18:49:07.000000000 +0900 @@ -108,7 +108,8 @@ START_PROFILE(host_announce); pull_ascii_fstring(comment, buf+31); - comment[42] = 0; +// comment[42] = 0; + comment[145] = 0; pull_ascii_nstring(announce_name, sizeof(announce_name), buf+5); pull_ascii_nstring(source_name, sizeof(source_name), dgram- >source_name.name);
Jeremy, please review this patch
Will be fixed for 3.0.23. Thanks, Jeremy.