summaryrefslogtreecommitdiffstats
path: root/ksysguard/ksysguardd/Linux
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 21:43:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 21:43:35 -0600
commit99e082a03ed2e3801b96755c2e3045514567731b (patch)
treedb1e14b128726a17ec705be90416794e390f6348 /ksysguard/ksysguardd/Linux
parenta20592124daa48e6216dbd3143dfdf43d9fd91de (diff)
downloadtdebase-99e082a03ed2e3801b96755c2e3045514567731b.tar.gz
tdebase-99e082a03ed2e3801b96755c2e3045514567731b.zip
Rename additional instances of KDE to TDE
Diffstat (limited to 'ksysguard/ksysguardd/Linux')
-rw-r--r--ksysguard/ksysguardd/Linux/ProcessList.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ksysguard/ksysguardd/Linux/ProcessList.c b/ksysguard/ksysguardd/Linux/ProcessList.c
index 1eba1f6cc..2708664bd 100644
--- a/ksysguard/ksysguardd/Linux/ProcessList.c
+++ b/ksysguard/ksysguardd/Linux/ProcessList.c
@@ -40,7 +40,7 @@
#define BUFSIZE 1024
#define TAGSIZE 32
-#define KDEINITLEN strlen( "tdeinit: " )
+#define TDEINITLEN strlen( "tdeinit: " )
static CONTAINER ProcessList = 0;
@@ -289,18 +289,18 @@ static int updateProcess( int pid )
/* Ugly hack to "fix" program name for tdeinit launched programs. */
if ( strcmp( ps->name, "tdeinit" ) == 0 &&
- strncmp( ps->cmdline, "tdeinit: ", KDEINITLEN ) == 0 &&
- strcmp( ps->cmdline + KDEINITLEN, "Running..." ) != 0 ) {
+ strncmp( ps->cmdline, "tdeinit: ", TDEINITLEN ) == 0 &&
+ strcmp( ps->cmdline + TDEINITLEN, "Running..." ) != 0 ) {
size_t len;
- char* end = strchr( ps->cmdline + KDEINITLEN, ' ' );
+ char* end = strchr( ps->cmdline + TDEINITLEN, ' ' );
if ( end )
- len = ( end - ps->cmdline ) - KDEINITLEN;
+ len = ( end - ps->cmdline ) - TDEINITLEN;
else
- len = strlen( ps->cmdline + KDEINITLEN );
+ len = strlen( ps->cmdline + TDEINITLEN );
if ( len > 0 ) {
if ( len > sizeof( ps->name ) - 1 )
len = sizeof( ps->name ) - 1;
- strncpy( ps->name, ps->cmdline + KDEINITLEN, len );
+ strncpy( ps->name, ps->cmdline + TDEINITLEN, len );
ps->name[ len ] = '\0';
}
}