winefile: fix the display of free disk space in the statusbar

Jan Zerebecki jan.wine at zerebecki.de
Wed Sep 6 03:45:02 CDT 2006


If this patch is rejected from inclusion, please tell me why, as
I would have to ask anyway.

From: Jan Zerebecki <jan.wine at zerebecki.de>
Changelog:
winefile: fix the display of free disk space in the statusbar
---

 programs/winefile/winefile.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 8b03f1e..3ec614e 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2941,11 +2941,11 @@ static void format_bytes(LPTSTR buffer, 
 	float fBytes = (float)bytes;
 
 	if (bytes >= 1073741824)	/* 1 GB */
-		wsprintf(buffer, sFmtGB, fBytes/1073741824.f+.5f);
+		_stprintf(buffer, sFmtGB, fBytes/1073741824.f+.5f);
 	else if (bytes >= 1048576)	/* 1 MB */
-		wsprintf(buffer, sFmtMB, fBytes/1048576.f+.5f);
+		_stprintf(buffer, sFmtMB, fBytes/1048576.f+.5f);
 	else if (bytes >= 1024)		/* 1 kB */
-		wsprintf(buffer, sFmtkB, fBytes/1024.f+.5f);
+		_stprintf(buffer, sFmtkB, fBytes/1024.f+.5f);
 	else
 		_stprintf(buffer, sLongNumFmt, bytes);
 }



More information about the wine-patches mailing list