From e9e2e0ca9e08a8f039364fc932013be89d673fa5 Mon Sep 17 00:00:00 2001 From: ruglory Date: Wed, 25 Feb 2009 21:57:16 +0000 Subject: [PATCH] Potentially unsave string processing code replaced git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@98 cac9541e-1b8d-4bfa-827e-589bba606050 --- lscribed/introspecthandler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 += ""; }