]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/status.c
ebl Add debug message when checking database encoding
[bacula/bacula] / bacula / src / filed / status.c
index aa55a8732327e2a01bd2d8f4adddcb84d98a83d9..78d447cf71384e4e65610493ef214a407464453e 100644 (file)
@@ -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 {