fix derp in license adding via shell

This commit is contained in:
Martin Michelsen
2019-06-21 18:37:07 -07:00
parent 5e2226b161
commit 9ee2e97738
+2 -2
View File
@@ -96,9 +96,9 @@ commands:\n\
} else if (starts_with(token, "access-key=")) {
if (token.size() > 23) {
throw invalid_argument("access-key is too long bytes");
throw invalid_argument("access-key is too long");
}
strcpy(l->gc_password, token.c_str() + 11);
strcpy(l->access_key, token.c_str() + 11);
} else if (starts_with(token, "serial=")) {
l->serial_number = stoul(token.substr(7));