Skip to content
Snippets Groups Projects
Commit 474c40c0 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 27fb52a1).

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 55594ffa
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment