fgets puts a \n in the buffer before the terminating \0.
Attach a file by drag & drop or click to upload