修复低版本gcc编译器告警

This commit is contained in:
aixiao 2022-09-13 16:16:39 +08:00
parent fd5efa86e2
commit fbfc828997
4 changed files with 4 additions and 2 deletions

BIN
aes.o

Binary file not shown.

BIN
sha

Binary file not shown.

6
sha.c
View File

@ -668,7 +668,8 @@ char *source_c[] = {
" argvs[3] = argv[0];", " argvs[3] = argv[0];",
"", "",
" int j=1;", " int j=1;",
" for(int i=4; i<=argc-1+4; i++)", " int i=4;",
" for(i=4; i<=argc-1+4; i++)",
" {", " {",
" argvs[i] = argv[j];", " argvs[i] = argv[j];",
" j++;", " j++;",
@ -712,6 +713,7 @@ int main(int argc, char *argv[])
char binfile[BUFFER_SIZE]; char binfile[BUFFER_SIZE];
char buildcmd[BUFFER_SIZE*10]; char buildcmd[BUFFER_SIZE*10];
int indx = 0;
memset(text_content, 0, file_size * 2); memset(text_content, 0, file_size * 2);
@ -762,7 +764,7 @@ int main(int argc, char *argv[])
fprintf(sfile, "%s\n", encrypted_text); fprintf(sfile, "%s\n", encrypted_text);
fprintf(sfile, "%s\n", encrypted_text_len); fprintf(sfile, "%s\n", encrypted_text_len);
fflush(sfile); fflush(sfile);
for (int indx = 0; source_c[indx]; indx++) for (indx=0; source_c[indx]; indx++)
fprintf(sfile, "%s\n", source_c[indx]); fprintf(sfile, "%s\n", source_c[indx]);
fclose(sfile); fclose(sfile);

BIN
sha.o

Binary file not shown.