Changeset 5830:a34322211d3d in roaraudio
- Timestamp:
- 01/06/13 15:28:15 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/config.c
r5828 r5830 561 561 char * ret, * p; 562 562 563 ROAR_DBG("roar_libroar_get_path(name='%s', null_as_universal=%i, product='%s', provider='%s') = ?", name, null_as_universal, product, provider); 564 563 565 if ( name == NULL ) { 564 roar_err_set(ROAR_ERROR_ NOENT);566 roar_err_set(ROAR_ERROR_FAULT); 565 567 return NULL; 566 568 } … … 612 614 ssize_t idx = 0; 613 615 616 ROAR_DBG("roar_libroar_list_path(list=%p, len=%lu, offset=%lu) = ?", list, (long unsigned int)len, (long unsigned int)offset); 617 614 618 if ( list == NULL ) { 615 619 roar_err_set(ROAR_ERROR_FAULT); … … 623 627 return 0; 624 628 625 for (i = offset; i < (sizeof(__paths)/sizeof(*__paths)); i++) {629 for (i = offset; idx < len && i < (sizeof(__paths)/sizeof(*__paths)); i++) { 626 630 list[idx++] = __paths[i].name; 627 631 }
Note: See TracChangeset
for help on using the changeset viewer.