We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 423d7ea commit 22ebd78Copy full SHA for 22ebd78
1 file changed
src/Authentication.cc
@@ -77,7 +77,7 @@ char *TokenSupplier(void *ctx) {
77
78
future.wait();
79
80
- char *token = (char *)malloc(dataPtr->token.size());
+ char *token = (char *)malloc(dataPtr->token.size() + 1);
81
strcpy(token, dataPtr->token.c_str());
82
return token;
83
}
0 commit comments