Skip to content

Instantly share code, notes, and snippets.

@technion
Created April 10, 2014 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technion/10365254 to your computer and use it in GitHub Desktop.
Save technion/10365254 to your computer and use it in GitHub Desktop.
Data_read type
diff --git a/crypto-scrypt-saltgen.c b/crypto-scrypt-saltgen.c
index 08435f8..3933117 100644
--- a/crypto-scrypt-saltgen.c
+++ b/crypto-scrypt-saltgen.c
@@ -8,7 +8,7 @@
int libscrypt_salt_gen(uint8_t *salt, size_t len)
{
unsigned char buf[len];
- int data_read = 0;
+ size_t data_read = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment