ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/statgrab/statgrab.c
(Generate patch)

Comparing projects/libstatgrab/src/statgrab/statgrab.c (file contents):
Revision 1.12 by ats, Mon Oct 20 22:18:21 2003 UTC vs.
Revision 1.13 by ats, Mon Nov 10 23:35:43 2003 UTC

# Line 279 | Line 279 | void populate_fs() {
279                                  die("out of memory");
280  
281                          name = buf;
282 +                        if (strlen(name) == 2 && name[1] == ':')
283 +                                name[1] = '\0';
284                          if (strncmp(name, "/dev/", 5) == 0)
285                                  name += 5;
286                          while ((p = strchr(name, '/')) != NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines