replace MAXDROPLEN with MAXPATHLEN

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10678 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-09-10 11:56:53 +00:00
parent 6788b85d24
commit 0223df3a93
2 changed files with 10 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ make_path(POP *p, MsgInfoList *mp, int new, char *buf, size_t len)
static int
scan_file(POP *p, MsgInfoList *mp)
{
char path[MAXDROPLEN];
char path[MAXPATHLEN];
FILE *f;
char buf[1024];
int eoh = 0;
@@ -80,7 +80,7 @@ scan_file(POP *p, MsgInfoList *mp)
static int
scan_dir(POP *p, int new)
{
char tmp[MAXDROPLEN];
char tmp[MAXPATHLEN];
DIR *dir;
struct dirent *dent;
MsgInfoList *mp = p->mlp;
@@ -145,7 +145,7 @@ int
pop_maildir_update(POP *p)
{
int i;
char tmp1[MAXDROPLEN], tmp2[MAXDROPLEN];
char tmp1[MAXPATHLEN], tmp2[MAXPATHLEN];
for(i = 0; i < p->msg_count; i++) {
make_path(p, &p->mlp[i], p->mlp[i].flags & NEW_FLAG,
tmp1, sizeof(tmp1));
@@ -205,7 +205,7 @@ pop_maildir_update(POP *p)
int
pop_maildir_open(POP *p, MsgInfoList *mp)
{
char tmp[MAXDROPLEN];
char tmp[MAXPATHLEN];
make_path(p, mp, mp->flags & NEW_FLAG, tmp, sizeof(tmp));
if(p->drop)
fclose(p->drop);

View File

@@ -85,6 +85,10 @@
#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
#ifdef _AIX
struct sockaddr_dl; /* AIX fun */
struct ether_addr;
#endif
#include <arpa/inet.h>
#endif
#ifdef HAVE_SYSLOG_H
@@ -115,7 +119,6 @@
#endif
#define MAXUSERNAMELEN 65
#define MAXDROPLEN 64
#define MAXLINELEN 1024
#define MAXMSGLINELEN 1024
#define MAXCMDLEN 4
@@ -242,9 +245,9 @@ typedef struct { /* POP parameter block */
the user */
long bytes_deleted; /* Number of maildrop bytes
flagged for deletion */
char drop_name[MAXDROPLEN]; /* The name of the user's
char drop_name[MAXPATHLEN]; /* The name of the user's
maildrop */
char temp_drop[MAXDROPLEN]; /* The name of the user's
char temp_drop[MAXPATHLEN]; /* The name of the user's
temporary maildrop */
long drop_size; /* Size of the maildrop in
bytes */