mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
fix: dereference
This commit is contained in:
parent
b7b7db8ca4
commit
5585290981
1 changed files with 3 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue