From c7c784170fc206a3e3f758eb7174a7ac1a8860f3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 13 Oct 2005 21:37:32 +0000 Subject: [PATCH] fix for unkown clients using shadow's style --- src/identify_client.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/identify_client.cpp b/src/identify_client.cpp index 5dad956f6..cbec2288e 100755 --- a/src/identify_client.cpp +++ b/src/identify_client.cpp @@ -201,12 +201,17 @@ namespace if (i < name_map + size && std::equal(f.id, f.id + 2, i->first)) identity << i->second; else - identity << std::string(f.id, f.id + 2); + { + identity << f.id[0]; + if (f.id[1] != 0) identity << f.id[1]; + } identity << " " << (int)f.major_version << "." << (int)f.minor_version - << "." << (int)f.revision_version - << "." << (int)f.tag_version; + << "." << (int)f.revision_version; + + if (f.id[1] != 0) + identity << "." << (int)f.tag_version; return identity.str(); }