--- ark/arkwidget.cpp.orig	Sun Feb 17 17:39:59 2002
+++ ark/arkwidget.cpp	Tue Apr  2 13:44:42 2002
@@ -129,7 +129,9 @@
 {
   fprintf(stderr, "Size: %ld\n", size);
   struct STATFS buf;
-  if (STATFS(QFile::encodeName(dir), &buf) == 0)
+  char *temp = strdup(QFile::encodeName(dir));
+
+  if (STATFS(temp, &buf) == 0)
     {
       double nAvailable = (double)buf.f_bavail * buf.f_bsize;
       if (nAvailable < (double)size)
--- ark/arkwidgetpart.cpp.orig	Thu Jan  3 20:34:55 2002
+++ ark/arkwidgetpart.cpp	Tue Apr  2 13:44:42 2002
@@ -83,7 +83,9 @@
 {
   fprintf(stderr, "Size: %ld\n", size);
   struct STATFS buf;
-  if (STATFS(QFile::encodeName(dir), &buf) == 0)
+  char *temp = strdup(QFile::encodeName(dir));
+
+  if (STATFS(temp, &buf) == 0)
     {
       double nAvailable = (double)buf.f_bavail * buf.f_bsize;
       if (nAvailable < (double)size)
--- kcalc/kcalc.cpp.orig	Fri Mar 22 01:07:35 2002
+++ kcalc/kcalc.cpp	Tue Apr  2 13:44:42 2002
@@ -67,7 +67,7 @@
 #include "version.h"
 
 // Initalize static members
-const CALCAMNT QtCalculator::pi = (ASIN(1L) * 2L);
+const CALCAMNT QtCalculator::pi = (ASIN(1.0) * 2L);
 
 
 static const char *description = I18N_NOOP("KDE Calculator");
--- kcalc/kcalc_core.cpp.orig	Mon Mar 18 12:44:31 2002
+++ kcalc/kcalc_core.cpp	Tue Apr  2 13:44:42 2002
@@ -380,12 +380,12 @@
 		if (DISPLAY_AMOUNT < 0)
 			DISPLAY_AMOUNT = decimal_point ?
 			DISPLAY_AMOUNT - ((CALCAMNT)data /
-			POW(current_base, decimal_point++)) :
+			POW((float)current_base, decimal_point++)) :
 			(current_base * DISPLAY_AMOUNT) - data;
 		else
 			DISPLAY_AMOUNT = decimal_point ?
 			DISPLAY_AMOUNT + ((CALCAMNT)data /
-			POW(current_base, decimal_point++)) :
+			POW((float)current_base, decimal_point++)) :
 			(current_base * DISPLAY_AMOUNT) + data;
 
 		if (decimal_point)
@@ -417,8 +417,8 @@
                         else
                         {
                             --decimal_point;
-                            DISPLAY_AMOUNT = floor(DISPLAY_AMOUNT * POW(current_base, decimal_point - 1)) / 
-                                             POW(current_base, (decimal_point - 1));
+                            DISPLAY_AMOUNT = floor(DISPLAY_AMOUNT * POW((float)current_base, decimal_point - 1)) / 
+                                             POW((float)current_base, (decimal_point - 1));
                         }
                 }
                 else
