Changeset 587867a in mainline for uspace/app/bdsh/compl.c
- Timestamp:
- 2019-03-16T13:01:30Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aeeaf0f
- Parents:
- 1c481ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/compl.c
r1c481ee r587867a 219 219 if (!is_path(prefix) && cs->is_command) { 220 220 cs->path_list[0] = malloc(sizeof(char) * PATH_MAX); 221 if (cs->path_list[0] == NULL) { 222 retval = ENOMEM; 223 goto error; 224 } 225 221 226 int ret = snprintf(cs->path_list[0], PATH_MAX, "%s/%s", search_dir[0], dirname); 222 227 if (ret < 0 || ret >= PATH_MAX) { … … 228 233 } 229 234 235 free(prefix); 230 236 cs->path_list[1] = NULL; 231 237 /*
Note:
See TracChangeset
for help on using the changeset viewer.