Index: /trunk/configure.ac
===================================================================
--- /trunk/configure.ac	(revision 44)
+++ /trunk/configure.ac	(revision 45)
@@ -1138,4 +1138,7 @@
             fi
             LIBS="${LIBS} -L${ORACLE_LIB_DIR} ${ORACLE_LIBS}"
+	    if test "x$GCC" != "xyes"; then
+	      CFLAGS="${CFLAGS} -fno-strict-aliasing"
+	    fi
           fi
           AC_DEFINE(WITH_ORACLE)
Index: /trunk/src/sh_database.c
===================================================================
--- /trunk/src/sh_database.c	(revision 44)
+++ /trunk/src/sh_database.c	(revision 45)
@@ -522,5 +522,5 @@
     {
       if (str[len-1] == '\n')
-	str[len-1] == '\0';
+	str[len-1] = '\0';
     }
   return str;
@@ -687,8 +687,8 @@
 		      _("sh_database_query"));
       if (retry == 0 && 
-	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)) 
-	  { 
-	    ++retry; sh_database_reset(); goto oracle_doconnect; 
-	  }
+	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))) 
+	{ 
+	  ++retry; sh_database_reset(); goto oracle_doconnect; 
+	}
       goto err_out;
     }
@@ -706,5 +706,5 @@
 		      _("sh_database_query"));
       if (retry == 0 && 
-	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)) 
+	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))) 
 	  { 
 	    ++retry; sh_database_reset(); goto oracle_doconnect; 
@@ -742,5 +742,5 @@
 		      _("sh_database_query"));
       if (retry == 0 && 
-	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)) 
+	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))) 
 	  { 
 	    ++retry; sh_database_reset(); goto oracle_doconnect; 
@@ -760,5 +760,5 @@
 		      _("sh_database_query"));
       if (retry == 0 && 
-	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)) 
+	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))) 
 	  { 
 	    ++retry; sh_database_reset(); goto oracle_doconnect; 
@@ -779,5 +779,5 @@
 		      _("sh_database_query"));
       if (retry == 0 && 
-	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)) 
+	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))) 
 	  { 
 	    ++retry; sh_database_reset(); goto oracle_doconnect; 
@@ -795,5 +795,5 @@
 		      _("sh_database_query"));
       if (retry == 0 && 
-	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9)) 
+	  (3114 == o_errorcode || 0 == strncmp(o_errormsg, _("ORA-03114"), 9))) 
 	  { 
 	    ++retry; sh_database_reset(); goto oracle_doconnect; 
