]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-volstat-log-20070823
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 23 Aug 2007 17:47:46 +0000 (17:47 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 23 Aug 2007 17:47:46 +0000 (17:47 +0000)
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

index 53d2409dc02e6209e2d988915ae34929dd86a552..8e1e7168384c1de194086d9e01edb1921299b704 100644 (file)
@@ -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);
 }