]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/picomodel/lwo/lwio.c
q3map2 is now waring free
[xonotic/netradiant.git] / libs / picomodel / lwo / lwio.c
index 9853c55a3db80a9ac7888ffad8deaa713d1a048a..63e9af76b567fa12de6c94d64eadcd6c48461b3a 100644 (file)
@@ -311,7 +311,7 @@ int sgetI1( unsigned char **bp )
    i = **bp;
    if ( i > 127 ) i -= 256;
    flen += 1;
-   *bp++;
+   (*bp)++;
    return i;
 }
 
@@ -349,7 +349,7 @@ unsigned char sgetU1( unsigned char **bp )
    if ( flen == FLEN_ERROR ) return 0;
    c = **bp;
    flen += 1;
-   *bp++;
+   (*bp)++;
    return c;
 }
 
@@ -422,7 +422,7 @@ char *sgetS0( unsigned char **bp )
 
    if ( flen == FLEN_ERROR ) return NULL;
 
-   len = strlen( buf ) + 1;
+   len = strlen( (const char *) buf ) + 1;
    if ( len == 1 ) {
       flen += 2;
       *bp += 2;