Make sure ed_Comment is empty string, not NULL

This makes it consistent with RAM, SFS and emulation in dos.library.
This commit is contained in:
deadwood 2024-03-04 15:54:44 +01:00
parent 013343441a
commit 3dad5f32af
1 changed files with 4 additions and 1 deletions

View File

@ -1013,7 +1013,10 @@ LONG DoExamineEntry(struct emulbase *emulbase, struct filehandle *fh, char *Entr
ead->ed_OwnerUID = st.st_uid;
ead->ed_OwnerGID = st.st_gid;
case ED_COMMENT:
ead->ed_Comment=NULL;
ead->ed_Comment=next;
*next = '\0'; next++;
if(next>=end)
return ERROR_BUFFER_OVERFLOW;
case ED_DATE:
{
struct DateStamp stamp;