Skip to content
Snippets Groups Projects
Commit 9ed5f12a authored by rswindell's avatar rswindell
Browse files

Fix GCC warning: field precision specifier ‘.*’ expects argument of type...

Fix GCC warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
parent 517debe6
Branches
Tags
No related merge requests found
......@@ -120,7 +120,7 @@ int pktdump(FILE* fp, const char* fname)
printf(" to %s\n" ,faddrtoa(&dest,NULL));
if(pkthdr.type2.password[0])
fprintf(stdout,"Password: '%.*s'\n",sizeof(pkthdr.type2.password),pkthdr.type2.password);
fprintf(stdout,"Password: '%.*s'\n",(int)sizeof(pkthdr.type2.password),pkthdr.type2.password);
fseek(fp,sizeof(pkthdr),SEEK_SET);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment