---- /dev/humancontroller  ---- 8ef54e9 import a fix for a QVM tool segfault diff --git src/tools/lcc/cpp/unix.c src/tools/lcc/cpp/unix.c index 397b1b4..587f3bb 100644 --- src/tools/lcc/cpp/unix.c +++ src/tools/lcc/cpp/unix.c @@ -109,7 +109,7 @@ memmove(void *dp, const void *sp, size_t n) unsigned char *cdp, *csp; if (n<=0) - return 0; + return dp; cdp = dp; csp = (unsigned char *)sp; if (cdp < csp) { @@ -123,6 +123,6 @@ memmove(void *dp, const void *sp, size_t n) *--cdp = *--csp; } while (--n); } - return 0; + return dp; } #endif