From eb0ea82774f1f61ce9dc05341b216aae6a8318fa 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