Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion iop/hdd/apa/src/hdd_fio.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ static int apaRename(s32 device, const char *oldId, const char *newId)
}

// do the renaming :) note: subs have no names!!
memcpy(clink->header->id, newId, APA_IDMAX);
memset(clink->header->id, 0, APA_IDMAX);
strncpy(clink->header->id, newId, APA_IDMAX - 1);

// touch creation time
apaGetTime(&clink->header->created);
Expand Down
Loading