Commit graph

6 commits

Author SHA1 Message Date
c6f8f0e736 fix(bin.c): error check and paste size 2022-11-29 14:16:11 +01:00
8c30d271df feat: use paste size instead of NULL byte in order to write the paste
Previously, the pastes were written to disk until feuille encountered
a NULL byte. This is now fixed.

+ version bump.
2022-11-29 13:57:11 +01:00
6c57a4d03c feat: safer `free()'s
`free' allocated buffers only on success inside the main loop, and
`free' them on error inside their respective functions

(fixes an UB where an already freed buffer is freed again in the main
loop)
2022-11-23 10:07:11 +01:00
de51c9830a fix(bin.c): safer generate_id()
set next byte of ID to zero each time a new character is appended to
prevent undefined behaviours.
2022-11-21 19:31:20 +01:00
87fcd5a435 fix(bin.c): remove trailing line in description 2022-11-21 14:44:55 +01:00
8453d41a00 feat: First stable release 2022-11-21 10:43:22 +01:00