commit 0a1faeea7f13aa5c473500e50674877f92fe6edc parent 972407f932b6471bf3821cade75cf38cf7cfc9f1 Author: z3bra <willyatmailoodotorg> Date: Sun May 15 19:22:11 +12000 Fix incorrect write of public key Diffstat:
sick.c | | | 2 | +- |
diff --git a/sick.c b/sick.c @@ -97,7 +97,7 @@ createkeypair(const char *alias) perror(fn); return -1; } - if (fwrite(priv, 1, sizeof(pub), fp) < sizeof(pub)) { + if (fwrite(pub, 1, sizeof(pub), fp) < sizeof(pub)) { fclose(fp); perror(fn); return -1;