From 9637e7bf7486af6c459c8c7e52b0339393e3379f Mon Sep 17 00:00:00 2001 From: Eric Green Date: Fri, 17 Jun 2016 11:16:08 -0700 Subject: [PATCH] Fix function header of rand_affixed_str to match header definition --- daemon/str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/str.c b/daemon/str.c index 36047e44f..5872117fd 100644 --- a/daemon/str.c +++ b/daemon/str.c @@ -39,7 +39,7 @@ void str_slice_free(void *p) { * Generates a random string sandwiched between affixes. * Will create the char string for you. Don't forget to clean up! */ -char *rand_affixed_str(int num_bytes, char *prefix, char *suffix) { +char *rand_affixed_str(char *prefix, int num_bytes, char *suffix) { int rand_len = num_bytes*2 + 1; char rand_affix[rand_len]; int prefix_len = strlen(prefix);