summaryrefslogtreecommitdiff
path: root/accesstoken.h
diff options
context:
space:
mode:
Diffstat (limited to 'accesstoken.h')
-rw-r--r--accesstoken.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/accesstoken.h b/accesstoken.h
index 009cdb0..31d0d29 100644
--- a/accesstoken.h
+++ b/accesstoken.h
@@ -18,8 +18,8 @@ static inline void accesstoken_parse(const char *tok,
"scope")) {
const char *val = json_object_get_string(
json_object_iter_peek_value(&iter));
- session->scope = malloc(strlen(val) + 1);
- strcpy(session->scope, val);
+ session->scopes = malloc(strlen(val) + 1);
+ strcpy(session->scopes, val);
}
json_object_iter_next(&iter);
}