Skip to content

Commit

Permalink
fix byte array to be unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
ktgeek committed Apr 11, 2018
1 parent 2b45971 commit be7c7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supreSSHion/SSHAgentCommunicator.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ - (void)removeKeys {

// Per ssh communication, uint32 of message length (in our case the one byte following) and
// then the message type which is SSH_AGENTC_REMOVE_ALL_IDENTITIES
int8_t buffer[5];
uint8_t buffer[5];
uint32_t messageLength = htonl(1);
memcpy(buffer, &messageLength, 4);
buffer[4] = SSH_AGENT_REMOVE_ALL_IDENTITIES;
Expand Down

0 comments on commit be7c7ec

Please sign in to comment.