Fix when kdetcompmgr printf message is displayed.

pull/16/head
Darrell Anderson 11 years ago
parent 3dfc6fd192
commit b2f408002e

@ -70,14 +70,13 @@ int main(int argc, char **argv)
strcat(filename, home);
strcat(filename, configfile);
printf("[kdetcompmgr] reading '%s' as kompmgr pidfile\n\n", filename);
// Now that we did all that by way of introduction...read the file!
FILE *pFile;
char buffer[255];
pFile = fopen(filename, "r");
int kompmgrpid = 0;
if (pFile) {
printf("[kdetcompmgr] Using '%s' as kompmgr pidfile\n", filename);
// obtain file size
fseek (pFile , 0 , SEEK_END);
unsigned long lSize = ftell (pFile);

Loading…
Cancel
Save