*/
#include "exchange-fd.h"
+#undef strncpy
/* Pointers to Bacula functions */
bFuncs *bfuncs = NULL;
{
_DebugMessage(0, "backup command=%s\n", (char *)value);
char *command = new char[strlen((char *)value) + 1];
- strcpy(command, (char *)value);
+ bstrncpy(command, (char *)value, strlen((char *)value)+1);
char *plugin_name = strtok((char *)command, ":");
char *path = strtok(NULL, ":");
char *option;
char *path_bit = strtok(path, "/");
for (i = 0; path_bit != NULL && i < 6; i++) {
context->path_bits[i] = new char[strlen(path_bit) + 1];
- strcpy(context->path_bits[i], path_bit);
+ bstrncpy(context->path_bits[i], path_bit, strlen(path_bit)+1);
path_bit = strtok(NULL, "/");
}