Skip to content

Commit a631984

Browse files
committed
Remove debugging
1 parent c1ddf3b commit a631984

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

java/src/hdf/hdf5lib/structs/H5FD_ros3_fapl_t.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public H5FD_ros3_fapl_t(String region, String id, String key)
9797
* @param region "aws region" for authenticating request
9898
* @param id "secret id" or "access id" for authenticating request
9999
* @param key "secret key" or "access key" for authenticating request
100-
* @param key "session token" or "access token" for authenticating request
100+
* @param token "session token" or "access token" for authenticating request
101101
*/
102102
public H5FD_ros3_fapl_t(String region, String id, String key, String token)
103103
{

java/src/jni/h5pFAPLImp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,14 +937,14 @@ Java_hdf_hdf5lib_H5_H5Pset_1fapl_1ros3(JNIEnv *env, jclass clss, jlong fapl_id,
937937
if (j_str) {
938938
PIN_JAVA_STRING(ENVONLY, j_str, str, NULL, "H5Pset_fapl_ros3: fapl_config session_token not pinned");
939939

940-
strncpy(instance.session_token, str, H5FD_ROS3_MAX_SESSION_TOKEN_LEN + 1);
941-
instance.secret_key[H5FD_ROS3_MAX_SESSION_TOKEN_LEN] = '\0';
940+
strncpy(instance.session_token, str, H5FD_ROS3_MAX_SECRET_TOK_LEN + 1);
941+
instance.secret_key[H5FD_ROS3_MAX_SECRET_TOK_LEN] = '\0';
942942

943943
UNPIN_JAVA_STRING(ENVONLY, j_str, str);
944944
str = NULL;
945945
}
946946
else
947-
memset(instance.session_token, 0, H5FD_ROS3_MAX_SESSION_TOKEN_LEN + 1);
947+
memset(instance.session_token, 0, H5FD_ROS3_MAX_SECRET_TOK_LEN + 1);
948948

949949
if (instance.aws_region[0] != '\0' && instance.secret_id[0] != '\0' && instance.secret_key[0] != '\0' && instance.session_token[0] != '\0')
950950
instance.authenticate = true;

0 commit comments

Comments
 (0)