From 985a2e34d60a803c11cce4729b16484847aec97b Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 23 Aug 2007 17:47:46 +0000 Subject: [PATCH] windows-volstat-log-20070823 must save the log string when it comes from a buffer on the stack otherwise garbage is logged in afsd.log --- src/WINNT/afsd/cm_volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsd/cm_volume.c b/src/WINNT/afsd/cm_volume.c index 53d2409dc..8e1e71683 100644 --- a/src/WINNT/afsd/cm_volume.c +++ b/src/WINNT/afsd/cm_volume.c @@ -1467,7 +1467,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); } -- 2.39.5