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
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment