Subversion Repositories RepoView

Rev

Rev 10 | Rev 15 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 11
Line 1... Line 1...
1
/* $Id: util.c 10 2024-08-21 02:13:48Z nishi $ */
1
/* $Id: util.c 11 2024-08-21 04:31:55Z nishi $ */
2
 
2
 
3
#include "rv_util.h"
3
#include "rv_util.h"
4
 
4
 
5
#include "../config.h"
5
#include "../config.h"
6
 
6
 
Line 73... Line 73...
73
		}
73
		}
74
	}
74
	}
75
	return r;
75
	return r;
76
}
76
}
77
 
77
 
78
char* rv_construct_repouser(const char* reponame, const char* username) {
-
 
79
	char cbuf[2];
-
 
80
	cbuf[0] = REPO_USER_DELIM;
-
 
81
	cbuf[1] = 0;
-
 
82
	return rv_strcat3(reponame, cbuf, username);
-
 
83
}
-
 
84
 
-
 
85
char* rv_new_token(const char* username) {
78
char* rv_new_token(const char* username) {
86
	const char tokenstr[] = "0123456789abcdefghijklmnopqrstuvwxyz";
79
	const char tokenstr[] = "0123456789abcdefghijklmnopqrstuvwxyz";
87
	char* token = malloc(17);
80
	char* token = malloc(17);
88
	token[16] = 0;
81
	token[16] = 0;
89
	int i;
82
	int i;