}
/* callback function for edit_job_codes */
-char *job_code_callback_filesetname(JCR *jcr, const char* param)
+extern "C" char *job_code_callback_filesetname(JCR *jcr, const char* param)
{
if (param[0] == 'f') {
return jcr->fileset->name();
/* util.c */
+extern "C" {
typedef char *(*job_code_callback_t)(JCR *, const char *);
+}
bool is_buf_zero (char *buf, int len);
void lcase (char *str);
char *p;
p = s;
- sprintf(s + strlen(s), "%lu", (uint32_t)GetCurrentProcessId());
+ bsnprintf(s + strlen(s), ss, "%lu", (uint32_t)GetCurrentProcessId());
(void)getcwd(s + strlen(s), 256);
bsnprintf(s + strlen(s), ss, "%lu", (uint32_t)GetTickCount());
QueryPerformanceCounter(&li);
General:
24Dec07
+kes Fix compile warning in src/lib/util.c
+kes Fix entry point for edit_job_codes() so that Win32 builds.
kes Fix seg fault Frank Sweetser reports in regression testing
on his systems. The problem was that the original author of
bsnprintf.c did not take into account the side effects of