# | 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"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |