#11770: CID 608995: Copy into fixed size buffer -------------------------+---------------------------- Reporter: sli908 | Owner: nobody Type: bug | Status: new Priority: normal | Milestone: R1 Component: - General | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 1 | Platform: All -------------------------+---------------------------- Comment (by pulkomandy): I don't think this is the correct way to handle this. A valid entry_ref is not allowed to use more than B_FILE_NAME_LENGTH characters so this shouldn't happen. If it does anyway, an error should be raised. Your code will just omit the name from the xfer_entry_ref, making it invalid, but will let the application continue and use it anyway. Since this is an unexpected condition (a file name longer than B_FILE_NAME_LENGTH is not allowed), the code should probably call debugger() if this happens. -- Ticket URL: <https://dev.haiku-os.org/ticket/11770#comment:2> Haiku <https://dev.haiku-os.org> Haiku - the operating system.