Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 08d9c4e6 in mainline for uspace/srv/devman/util.c


Ignore:
Timestamp:
2010-02-15T21:04:59Z (12 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master
Children:
e85920d
Parents:
e2b9a993
Message:

device manager - initialization of the list of available drivers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/util.c

    re2b9a993 r08d9c4e6  
    4141        char *res;
    4242        int base_len = str_size(base_path);
    43         int size = base_len + str_size(name) + str_size(ext) + 3;       
     43        int size = base_len + 2*str_size(name) + str_size(ext) + 3;     
    4444       
    4545        res = malloc(size);
     
    5151                }
    5252                str_append(res, size, name);
     53                str_append(res, size, "/");
     54                str_append(res, size, name);
    5355                if(ext[0] != '.') {
    5456                        str_append(res, size, ".");
Note: See TracChangeset for help on using the changeset viewer.