From a7b6c2695edb937ce3de4d2f2dd62c075bcee567 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 19 Jan 2010 16:27:30 +0100 Subject: [PATCH] Fix bscan bug introduced with serialization change --- bacula/src/lib/serial.c | 4 ++-- bacula/src/lib/serial.h | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bacula/src/lib/serial.c b/bacula/src/lib/serial.c index 2de4edaf30..70d058ce3d 100644 --- a/bacula/src/lib/serial.c +++ b/bacula/src/lib/serial.c @@ -170,12 +170,12 @@ void serial_float64(uint8_t * * const ptr, const float64_t v) *ptr += sizeof(float64_t); } -void serial_string(uint8_t * * const ptr, const char * const str, int max) +void serial_string(uint8_t * * const ptr, const char * const str) { int i; char *dest = (char *)*ptr; char *src = (char *)str; - for (i=0; i