From 227bc3560762ae770564fcd8bad36b334696bb0b Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 6 Jan 2025 21:04:27 -0600 Subject: sdptiny --- src/encryption.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/encryption.c') diff --git a/src/encryption.c b/src/encryption.c index e92e4e7..c74c07e 100644 --- a/src/encryption.c +++ b/src/encryption.c @@ -1,3 +1,5 @@ +#define _GNU_SOURCE + #include "encryption.h" #include "shared.h" @@ -44,7 +46,10 @@ int maketmp(const char *dest, const char *format, ...) { int main() { char *test = NULL; - saprintf(&test, "We do a little trolling %d", 900); + // Turns out GNU did this for me, and I trust their code more than my own, so I'm using this now + if(asprintf(&test, "We do a little trolling %d", 900) < 0) + error(1, ENOMEM, "asprintf call failed"); + printf("%s\n", test); return 0; -- cgit v1.2.3