Skip to content

Commit e5ee7f4

Browse files
author
Brian Callahan
committed
Update lcc cpp memmove function (we don't use lcc cpp right now but the fix is obvious).
From drh/lcc#16
1 parent 4639bb7 commit e5ee7f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lang/lcc/cpp/unix.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ memmove(void *dp, const void *sp, size_t n)
9898
unsigned char *cdp, *csp;
9999

100100
if (n==0)
101-
return 0;
101+
return dp;
102102
cdp = dp;
103103
csp = (unsigned char *)sp;
104104
if (cdp < csp) {
@@ -112,5 +112,5 @@ memmove(void *dp, const void *sp, size_t n)
112112
*--cdp = *--csp;
113113
} while (--n);
114114
}
115-
return 0;
115+
return dp;
116116
}

0 commit comments

Comments
 (0)