diff --git a/lscribed/introspecthandler.cpp b/lscribed/introspecthandler.cpp index 88f7ec5..f59b474 100644 --- a/lscribed/introspecthandler.cpp +++ b/lscribed/introspecthandler.cpp @@ -38,11 +38,10 @@ DBusHandlerResult IntrospectHandler::processMessage( const Message &msg ) if( pathlen != 1 ) ++pathlen; const char *end = strchr( DBusManagerPath + pathlen, '/' ); if( end ) { - char sub[128]; const int sublen = end - DBusManagerPath - pathlen; - strncpy( sub, DBusManagerPath + pathlen, sublen ); - sub[ sublen ] = 0; - introspect += std::string( ""; + introspect += ""; } else introspect += ""; }