minor edits, no functional changes.
[blender-staging.git] / intern / ghost / intern / GHOST_WindowX11.cpp
index 6830db8241c835e1d3d6788c3a11a5b95b21aa8b..c9f39bc7c2c64be5cde8cf6a33f79e0a3c9b26bb 100644 (file)
@@ -674,7 +674,7 @@ setTitle(
        XChangeProperty(m_display, m_window,
                        name, utf8str, 8, PropModeReplace,
                        (const unsigned char*) title.ReadPtr(),
-                       strlen(title.ReadPtr()));
+                       title.Length());
 
 // This should convert to valid x11 string
 //  and getTitle would need matching change