We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db84ec8 commit 0ab98f2Copy full SHA for 0ab98f2
fpcalc/src/main/cpp/fpcalc_jni.h
@@ -40,10 +40,10 @@ struct FpcalcResult {
40
int char_size = strlen(str);
41
if (is_raw) {
42
raw_fingerprint = (char *) malloc(char_size * sizeof(char));
43
- return strcat(raw_fingerprint, str) != nullptr;
+ return strcpy(raw_fingerprint, str) != nullptr;
44
} else {
45
fingerprint = (char *) malloc(char_size * sizeof(char));
46
- return strcat(fingerprint, str) != nullptr;
+ return strcpy(fingerprint, str) != nullptr;
47
}
48
49
0 commit comments