Commit 9bffe719 9bffe719fd75b6f9827af0c4197a3d4d11a04b57 by Sam Roberts

gcc doesn't like signed chars as array indexes, they could be negative

1 parent 9be820ee
......@@ -106,8 +106,9 @@ static int transtab[] = {
/* Forward Indexing */
static char *
_url_path_index (const char *spooldir, const char *user, int index_depth)
_url_path_index (const char *spooldir, const char *iuser, int index_depth)
{
const unsigned char* user = (const unsigned char*) iuser;
int i, ulen = strlen (user);
char *mbox, *p;
......@@ -134,8 +135,9 @@ _url_path_index (const char *spooldir, const char *user, int index_depth)
/* Reverse Indexing */
static char *
_url_path_rev_index (const char *spooldir, const char *user, int index_depth)
_url_path_rev_index (const char *spooldir, const char *iuser, int index_depth)
{
const unsigned char* user = (const unsigned char*) iuser;
int i, ulen = strlen (user);
char *mbox, *p;
......