"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/pcp/pcpdir.c" between
sqwebmail-5.9.3.tar.bz2 and sqwebmail-6.0.0.tar.bz2

About: SqWebMail is a CGI Webmail client for Maildir mailboxes (module of the Courier mail server).

pcpdir.c  (sqwebmail-5.9.3.tar.bz2):pcpdir.c  (sqwebmail-6.0.0.tar.bz2)
skipping to change at line 231 skipping to change at line 231
free(pd->newindexname); free(pd->newindexname);
free(pd->indexname); free(pd->indexname);
free(pd->dirname); free(pd->dirname);
free(pd->username); free(pd->username);
free(pd); free(pd);
} }
static void mkunique(struct PCPdir *pd) static void mkunique(struct PCPdir *pd)
{ {
struct timeval tv; struct timeval tv;
char b[sizeof(pd->hostname_buf)];
gettimeofday(&tv, NULL); gettimeofday(&tv, NULL);
sprintf(pd->unique_filename_buf, "%lu.%lu.%lu_%u.", sprintf(pd->unique_filename_buf, "%lu.%lu.%lu_%u.",
(unsigned long)tv.tv_sec, (unsigned long)tv.tv_sec,
(unsigned long)tv.tv_usec, (unsigned long)tv.tv_usec,
(unsigned long)getpid(), (unsigned long)getpid(),
++pd->uniq_cnt); ++pd->uniq_cnt);
strncat(pd->unique_filename_buf, pd->hostname_buf, strcpy(b, pd->hostname_buf);
strncat(pd->unique_filename_buf, b,
sizeof(pd->unique_filename_buf)-1 sizeof(pd->unique_filename_buf)-1
-strlen(pd->unique_filename_buf)); -strlen(pd->unique_filename_buf));
} }
static char *dotlockname(struct PCPdir *pd) static char *dotlockname(struct PCPdir *pd)
{ {
char *p=malloc(strlen(pd->dirname)+sizeof("/.lock")); char *p=malloc(strlen(pd->dirname)+sizeof("/.lock"));
if (!p) if (!p)
return (NULL); return (NULL);
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)