From: Peter Åstrand Date: Tue, 27 Jan 2009 15:03:20 +0000 (+0000) Subject: Like r3552/r3553, but for Windows viewer: Add TightVNC to window title. X-Git-Tag: v0.0.90~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e21ac1b1d32a5ec0903b920b76d44943a09fb597;p=tigervnc.git Like r3552/r3553, but for Windows viewer: Add TightVNC to window title. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3580 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx index 2b1ca398..eac2b6fd 100644 --- a/win/vncviewer/DesktopWindow.cxx +++ b/win/vncviewer/DesktopWindow.cxx @@ -1268,7 +1268,7 @@ DesktopWindow::setName(const char* name) { strCopy(desktopName, name, sizeof(desktopName)); } char *newTitle = new char[strlen(desktopName)+20]; - sprintf(newTitle, "%s @ %i%%", desktopName, getDesktopScale()); + sprintf(newTitle, "TightVNC: %.240s @ %i%%", desktopName, getDesktopScale()); SetWindowText(handle, TStr(newTitle)); delete [] newTitle; }