diff --git a/VersionASM b/VersionASM
index c7244ff61b2174a2ab6753f29d14a73190a33be2..262eab6d302ee05719ee8bba4109c77262800ddd 100644
--- a/VersionASM
+++ b/VersionASM
@@ -11,14 +11,14 @@
                         GBLS    Module_HelpVersion
                         GBLS    Module_ComponentName
                         GBLS    Module_ComponentPath
-Module_MajorVersion     SETS    "5.30"
-Module_Version          SETA    530
+Module_MajorVersion     SETS    "5.31"
+Module_Version          SETA    531
 Module_MinorVersion     SETS    ""
-Module_Date             SETS    "10 Apr 2001"
-Module_ApplicationDate2 SETS    "10-Apr-01"
-Module_ApplicationDate4 SETS    "10-Apr-2001"
+Module_Date             SETS    "11 Apr 2001"
+Module_ApplicationDate2 SETS    "11-Apr-01"
+Module_ApplicationDate4 SETS    "11-Apr-2001"
 Module_ComponentName    SETS    "RISC_OSLib"
 Module_ComponentPath    SETS    "RiscOS/Sources/Lib/RISC_OSLib"
-Module_FullVersion      SETS    "5.30"
-Module_HelpVersion      SETS    "5.30 (10 Apr 2001)"
+Module_FullVersion      SETS    "5.31"
+Module_HelpVersion      SETS    "5.31 (11 Apr 2001)"
                         END
diff --git a/VersionNum b/VersionNum
index eec3a1258cfb78ab464023e1cb218f163073b731..9e12d2edc21e75d29d8b22219d5413bbe1c86a4e 100644
--- a/VersionNum
+++ b/VersionNum
@@ -1,22 +1,22 @@
-/* (5.30)
+/* (5.31)
  *
  * This file is automatically maintained by srccommit, do not edit manually.
  *
  */
-#define Module_MajorVersion_CMHG        5.30
+#define Module_MajorVersion_CMHG        5.31
 #define Module_MinorVersion_CMHG        
-#define Module_Date_CMHG                10 Apr 2001
+#define Module_Date_CMHG                11 Apr 2001
 
-#define Module_MajorVersion             "5.30"
-#define Module_Version                  530
+#define Module_MajorVersion             "5.31"
+#define Module_Version                  531
 #define Module_MinorVersion             ""
-#define Module_Date                     "10 Apr 2001"
+#define Module_Date                     "11 Apr 2001"
 
-#define Module_ApplicationDate2         "10-Apr-01"
-#define Module_ApplicationDate4         "10-Apr-2001"
+#define Module_ApplicationDate2         "11-Apr-01"
+#define Module_ApplicationDate4         "11-Apr-2001"
 
 #define Module_ComponentName            "RISC_OSLib"
 #define Module_ComponentPath            "RiscOS/Sources/Lib/RISC_OSLib"
 
-#define Module_FullVersion              "5.30"
-#define Module_HelpVersion              "5.30 (10 Apr 2001)"
+#define Module_FullVersion              "5.31"
+#define Module_HelpVersion              "5.31 (11 Apr 2001)"
diff --git a/c/string b/c/string
index 3084dbd7bae1462240011f32da7b6581174cdd0a..1a324a586dd3c4e8fce35b498277ab4dba59a32c 100644
--- a/c/string
+++ b/c/string
@@ -265,6 +265,7 @@ strcmp_checkbytes:
         rc = res & -res;
         res = 0xFF;
         for (;;) {
+          if (((w1 | w2) & res) == 0) return 0;
           if (rc & res) return (w1 & res) - (w2 & res);
           w1 >>= 1;
           w2 >>= 1;