ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/residentMem.c
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/residentMem.c (file contents):
Revision 2024 by gezelter, Tue Feb 15 05:05:33 2005 UTC vs.
Revision 2026 by gezelter, Tue Feb 15 05:59:14 2005 UTC

# Line 8 | Line 8 | double residentMem () {
8    char buf[150];
9    char* foo;
10    long int myRSS, totRSS;
11 <  char* pscommand;
11 >  char pscommand[150];
12  
13 <  pscommand = strdup("PS");
13 >  strncpy(pscommand, PSCOMMAND, strlen(PSCOMMAND));
14  
15   #if PSTYPE == BSD
16    strcat(pscommand, " ax -o rss");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines