Rev 4153 | Rev 4327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4153 | Rev 4263 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | 184 | ||
185 | char namebuf[TASK_NAME_BUFLEN]; |
185 | char namebuf[TASK_NAME_BUFLEN]; |
186 | char *name; |
186 | char *name; |
187 | 187 | ||
188 | name = init.tasks[i].name; |
188 | name = init.tasks[i].name; |
189 | if (name[0] == '\0') |
189 | if (name[0] == 0) |
190 | name = "<unknown>"; |
190 | name = "<unknown>"; |
191 | 191 | ||
192 | ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN); |
192 | ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN); |
193 | strncpy(namebuf, INIT_PREFIX, TASK_NAME_BUFLEN); |
193 | str_ncpy(namebuf, INIT_PREFIX, TASK_NAME_BUFLEN); |
194 | strncpy(namebuf + INIT_PREFIX_LEN, name, |
194 | str_ncpy(namebuf + INIT_PREFIX_LEN, name, |
195 | TASK_NAME_BUFLEN - INIT_PREFIX_LEN); |
195 | TASK_NAME_BUFLEN - INIT_PREFIX_LEN); |
196 | 196 | ||
197 | int rc = program_create_from_image((void *) init.tasks[i].addr, |
197 | int rc = program_create_from_image((void *) init.tasks[i].addr, |
198 | namebuf, &programs[i]); |
198 | namebuf, &programs[i]); |
199 | 199 |