--- trunk/OOPSE-4/src/utils/residentMem.c 2005/02/15 05:05:33 2024 +++ trunk/OOPSE-4/src/utils/residentMem.c 2005/02/15 05:59:14 2026 @@ -8,9 +8,9 @@ double residentMem () { char buf[150]; char* foo; long int myRSS, totRSS; - char* pscommand; + char pscommand[150]; - pscommand = strdup("PS"); + strncpy(pscommand, PSCOMMAND, strlen(PSCOMMAND)); #if PSTYPE == BSD strcat(pscommand, " ax -o rss");