]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-volstat-log-20070823
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 23 Aug 2007 17:49:03 +0000 (17:49 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 23 Aug 2007 17:49:03 +0000 (17:49 +0000)
must save the log string when it comes from a buffer on the stack
otherwise garbage is logged in afsd.log

(cherry picked from commit 985a2e34d60a803c11cce4729b16484847aec97b)

src/WINNT/afsd/cm_volume.c

index 2f45b2618473d09f8f7b479100ffd5cc735c69c3..847510cc72912a7ba8273aec7916d6be4c842f7b 100644 (file)
@@ -1471,7 +1471,7 @@ void cm_VolumeStatusNotification(cm_volume_t * volp, afs_uint32 volID, enum vols
     snprintf(volstr, sizeof(volstr), "%s:%s%s", volp->cellp->name, volp->namep, ext);
 
     osi_Log4(afsd_logp, "VolumeStatusNotification: %-48s [%10u] (%s -> %s)",
-             volstr, volID, volstatus_str(old), volstatus_str(new));
+             osi_LogSaveString(afsd_logp, volstr), volID, volstatus_str(old), volstatus_str(new));
 
     cm_VolStatus_Change_Notification(volp->cellp->cellID, volID, new);
 }