修复低版本gcc编译器告警
This commit is contained in:
parent
fd5efa86e2
commit
fbfc828997
6
sha.c
6
sha.c
@ -668,7 +668,8 @@ char *source_c[] = {
|
||||
" argvs[3] = argv[0];",
|
||||
"",
|
||||
" 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];",
|
||||
" j++;",
|
||||
@ -712,6 +713,7 @@ int main(int argc, char *argv[])
|
||||
char binfile[BUFFER_SIZE];
|
||||
char buildcmd[BUFFER_SIZE*10];
|
||||
|
||||
int indx = 0;
|
||||
|
||||
|
||||
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_len);
|
||||
fflush(sfile);
|
||||
for (int indx = 0; source_c[indx]; indx++)
|
||||
for (indx=0; source_c[indx]; indx++)
|
||||
fprintf(sfile, "%s\n", source_c[indx]);
|
||||
fclose(sfile);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user