sprintf() in not a buffer, could create any issue

This commit is contained in:
Patrick Siegl
2019-03-31 23:49:26 +02:00
parent 40fa7d4c2e
commit de7b6be8fd
4 changed files with 11 additions and 11 deletions

View File

@@ -16,7 +16,7 @@
struct infnoise_context {
struct ftdi_context ftdic;
uint32_t entropyThisTime;
char *message;
const char *message;
bool errorFlag;
//uint8_t keccakState[KeccakPermutationSizeInBytes];
@@ -41,7 +41,7 @@ struct _infnoise_devlist_node_t {
*
* returns: NULL when none found or infnoise_devlist_node
*/
infnoise_devlist_node_t* listUSBDevices(char **message);
infnoise_devlist_node_t* listUSBDevices(const char **message);
/*
* initialize the Infinite Noise TRNG - must be called once before readData() works