if (!bufp->lcase) {
bufp->lcase = get_pool_memory(PM_FNAME);
}
- check_pool_memory_size(bufp->lcase, len+1);
+ bufp->lcase = check_pool_memory_size(bufp->lcase, len+1);
unsigned char *dst = (unsigned char *)bufp->lcase;
while (*string) {
*dst++ = tolower(*string++);
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
struct abufhead *head = (struct abufhead *)cp;
P(mutex);
- Dmsg4(1150, "sm_free %d at %x from %s:%d\n",
+ Dmsg4(1150, "sm_free %d at %p from %s:%d\n",
head->ablen, fp,
head->abfname, head->ablineno);
}
/* All done. Free and dechain the original buffer. */
- sm_free(__FILE__, __LINE__, ptr);
+ sm_free(fname, lineno, ptr);
}
Dmsg4(150, _("sm_realloc %d at %x from %s:%d\n"), size, buf, fname, lineno);
return buf;