Skip to content
Snippets Groups Projects
Commit f92a14cd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix issue with the import message commands introduced in previous commit

The fread() usage here did not need "addressing" (Commit 1b56dc96).

This caused messages posted via smbutil to be short (e.g. 0 or 1 bytes
in length). Reported by Accession via Idle Relay Chat.

Also, don't call strlen() on msgtxt which could be NULL, causing segfault
in final printf() callin in postmsg().
parent 37d8d708
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2142 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment