added missing newlines to error messages

This commit is contained in:
git@daemon.de
2014-05-05 12:01:55 +02:00
parent 7ae0cedcb1
commit 64eb4651f8
6 changed files with 20 additions and 18 deletions

View File

@@ -34,7 +34,7 @@ byte* pcp_scrypt(PCPCTX *ptx, char *passwd, size_t passwdlen, byte *nonce, size_
return dk;
}
else {
fatal(ptx, "crypto_scrypt() failed");
fatal(ptx, "crypto_scrypt() failed\n");
return NULL;
}

View File

@@ -82,7 +82,7 @@ vault_t *pcpvault_new(PCPCTX *ptx, char *filename, int is_tmp) {
vault->isnew = 1;
mode_t old_mask = umask (S_IWGRP | S_IWOTH | S_IRGRP | S_IROTH);
if((fd = fopen(vault->filename, "wb+")) == NULL) {
fatal(ptx, "Could not create vault file %s", vault->filename);
fatal(ptx, "Could not create vault file %s\n", vault->filename);
umask (old_mask);
goto errn;
}
@@ -90,7 +90,7 @@ vault_t *pcpvault_new(PCPCTX *ptx, char *filename, int is_tmp) {
}
else {
if((fd = fopen(vault->filename, "rb+")) == NULL) {
fatal(ptx, "Could not open vault file %s", vault->filename);
fatal(ptx, "Could not open vault file %s\n", vault->filename);
goto errn;
}
}

View File

@@ -199,7 +199,7 @@ byte *pcp_z85_decode(PCPCTX *ptx, char *z85block, size_t *dstlen) {
bin = ucmalloc(binlen);
if(zmq_z85_decode(bin, z85block) == NULL) {
fatal(ptx, "zmq_z85_decode() failed, input size ! mod 5 (got %ld)", strlen(z85block));
fatal(ptx, "zmq_z85_decode() failed, input size ! mod 5 (got %ld)\n", strlen(z85block));
return NULL;
}
@@ -287,7 +287,7 @@ char *pcp_readz85string(PCPCTX *ptx, unsigned char *input, size_t bufsize) {
}
if(_buffer_is_binary(input, bufsize) > 0) {
fatal(ptx, "input is not z85 encoded and contains pure binary data");
fatal(ptx, "input is not z85 encoded and contains pure binary data\n");
return NULL;
}
@@ -339,7 +339,7 @@ char *pcp_readz85string(PCPCTX *ptx, unsigned char *input, size_t bufsize) {
}
if(buffer_size(z) == 0) {
fatal(ptx, "empty z85 encoded string");
fatal(ptx, "empty z85 encoded string\n");
goto rferr;
}