Browse Source

Fix function header of rand_affixed_str to match header definition

pull/245/head
Eric Green 10 years ago
parent
commit
9637e7bf74
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/str.c

+ 1
- 1
daemon/str.c View File

@ -39,7 +39,7 @@ void str_slice_free(void *p) {
* Generates a random string sandwiched between affixes. * Generates a random string sandwiched between affixes.
* Will create the char string for you. Don't forget to clean up! * 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; int rand_len = num_bytes*2 + 1;
char rand_affix[rand_len]; char rand_affix[rand_len];
int prefix_len = strlen(prefix); int prefix_len = strlen(prefix);


Loading…
Cancel
Save