GPLONLY_ and PID-related stuff

This commit is contained in:
albert
2003-07-03 05:20:19 +00:00
parent edcc923657
commit 0db94e6a1a
11 changed files with 103 additions and 38 deletions

2
pmap.c
View File

@@ -93,7 +93,7 @@ static int one_proc(unsigned pid){
char *tmp; // to clean up unprintables
unsigned long start, end, diff;
unsigned long long pgoff;
sscanf(mapbuf,"%lx-%lx %s %Lx", &start, &end, flags, &pgoff);
sscanf(mapbuf,"%lx-%lx %31s %Lx", &start, &end, flags, &pgoff);
tmp = strchr(mapbuf,'\n');
if(tmp) *tmp='\0';
tmp = mapbuf;