X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Ffiled%2Fstatus.c;h=78d447cf71384e4e65610493ef214a407464453e;hb=44c8fb4a8bd89c42465453970929d5fb2a2538de;hp=aa55a8732327e2a01bd2d8f4adddcb84d98a83d9;hpb=f4891446832bfaaadc8b7f7a0f9a6974ae961110;p=bacula%2Fbacula diff --git a/bacula/src/filed/status.c b/bacula/src/filed/status.c index aa55a87323..78d447cf71 100644 --- a/bacula/src/filed/status.c +++ b/bacula/src/filed/status.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2001-2008 Free Software Foundation Europe e.V. + Copyright (C) 2001-2009 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -340,8 +340,8 @@ static void sendit(const char *msg, int len, STATUS_PKT *sp) { if (sp->bs) { BSOCK *user = sp->bs; - - pm_memcpy(user->msg, msg, len+1); + user->msg = check_pool_memory_size(user->msg, len+1); + memcpy(user->msg, msg, len+1); user->msglen = len+1; user->send(); } else {