Skip to content

Commit 798993d

Browse files
dgarskedanielinux
authored andcommitted
Fix for directive output may be truncated on Win where PATH_MAX is 260, not 1024.
1 parent c76a6f1 commit 798993d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/keytools/sign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ int main(int argc, char** argv)
16931693
char* tmpstr;
16941694
const char* sign_str = "AUTO";
16951695
const char* hash_str = "SHA256";
1696-
uint8_t buf[1024];
1696+
uint8_t buf[PATH_MAX-32]; /* leave room to avoid "directive output may be truncated" */
16971697
uint8_t *pubkey = NULL;
16981698
uint32_t pubkey_sz = 0;
16991699
uint8_t *kbuf=NULL, *key_buffer;

0 commit comments

Comments
 (0)