Skip to content

Commit

Permalink
AP_Filesystem: 9P2000: remvoe variable size object initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Jan 5, 2025
1 parent 679f835 commit 46bbce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_Filesystem/AP_Filesystem_9P2000.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ bool AP_Filesystem_9P2000::create_file(NineP2000& fs, const char *fname, bool is
}
}

char name[len + 1] {};
char name[len + 1];
memset(&name, 0, sizeof(name));
memcpy(&name, fname, len);
if (found) {
name[split] = 0;
Expand Down

0 comments on commit 46bbce5

Please sign in to comment.