}
/* 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);
_Z11is_buf_zeroPci
_Z13unbash_spacesPc
_Z13unbash_spacesR8POOL_MEM
-_Z14edit_job_codesP3JCRPcS1_PKc
+_Z14edit_job_codesP3JCRPcS1_PKcPFS1_S0_S3_E
_Z15job_type_to_stri
_Z16job_level_to_stri
_Z16make_session_keyPcS_i
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