fix: dereference

This commit is contained in:
iceman1001 2019-04-08 11:40:52 +02:00
parent b7b7db8ca4
commit 5585290981

View file

@ -49,12 +49,10 @@ void memxor(uint8_t *dest, uint8_t *src, size_t len) {
}
int strlen(const char *str) {
int l = 0;
while (*str) {
l++;
str++;
const char *p;
for (p = str; *p != '\0'; ++p) {
}
return l;
return p-str;
}
char *strncat(char *dest, const char *src, unsigned int n) {