fix(bin.c): error check and paste size
This commit is contained in:
parent
8c30d271df
commit
c6f8f0e736
2 changed files with 2 additions and 2 deletions
2
bin.c
2
bin.c
|
@ -91,7 +91,7 @@ int write_paste(char *paste, unsigned long paste_size, char *id)
|
|||
return -1;
|
||||
|
||||
/* write the content to file */
|
||||
if (fwrite(paste, paste_size, sizeof(char), file) == -1) {
|
||||
if (fwrite(paste, sizeof(char), paste_size, file) != paste_size) {
|
||||
fclose(file);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# feuille version
|
||||
VERSION = 1.19.0
|
||||
VERSION = 1.19.1
|
||||
|
||||
# paths (customize them to fit your system)
|
||||
PREFIX = /usr/local
|
||||
|
|
Reference in a new issue