Fix when kdetcompmgr printf message is displayed.

(cherry picked from commit b2f408002e)
v3.5.13-sru
Darrell Anderson 12 years ago committed by Slávek Banko
parent f42aed592a
commit d99793c265

@ -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