- fwrite(buf, 1, MIN(sizeof(buf), sb.st_size), f);
- sb.st_size -= MIN(sizeof(buf), sb.st_size);
+ fwrite(buf, 1, MIN(ssizeof(buf), sb.st_size), f);
+ sb.st_size -= MIN(ssizeof(buf), sb.st_size);
while ((l = fread(buf, 1, sizeof (buf), fin)) > 0) {
if (fwrite(buf, 1, l, fout) != l)
while ((l = fread(buf, 1, sizeof (buf), fin)) > 0) {
if (fwrite(buf, 1, l, fout) != l)
if ((chunk = fread(buf, 1, chunk, in)) < 1)
break;
if ((chunk = fread(buf, 1, chunk, in)) < 1)
break;
char *
mutt_concat_path(char *d, ssize_t n, const char *dir, const char *fname)
{
char *
mutt_concat_path(char *d, ssize_t n, const char *dir, const char *fname)
{
- snprintf(d, n, fmt, dir, fname);
+ m_strcpy(d + pos, n - pos, fname);
/* FIXME: API is very wrong */
ssize_t mutt_quote_filename(char *d, ssize_t l, const char *s)
{
/* FIXME: API is very wrong */
ssize_t mutt_quote_filename(char *d, ssize_t l, const char *s)
{