embryo_cc - fix coverity complaint about assert
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 6 Aug 2016 06:41:02 +0000 (15:41 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 6 Aug 2016 06:41:02 +0000 (15:41 +0900)
fix assert using a strance assert syntax and go back to basic asserts.
fix coverity CID 1361224

@fix

src/bin/embryo/embryo_cc_sc1.c

index 2ca1aaf..0d94b24 100644 (file)
@@ -2098,7 +2098,7 @@ funcstub(int native)
             error(10);         /* illegal function or declaration */
             return;
          }                     /* if */
-        assert(("strcpy: source str size is more than available at destination", sizeof(str) <= sNAMEMAX));
+        assert(sizeof(str) <= sNAMEMAX);
        strcpy(symbolname, str);
      }                         /* if */
    needtoken('(');             /* only functions may be native/forward */