Browse code

seas: proper print formater %.*s instead of %*.s

Daniel-Constantin Mierla authored on 20/05/2022 07:51:44
Showing 1 changed files
... ...
@@ -324,7 +324,7 @@ int print_encoded_msg(FILE* fd,char *code,char *prefix)
324 324
    fprintf(fd,"MESSAGE:\n[%.*s]\n",msglen,msg);
325 325
    r=(i<100)?1:0;
326 326
    if(r){
327
-      fprintf(fd,"%sREQUEST CODE=%d==%.*s,URI=%.*s,VERSION=%*.s\n",prefix,i,
327
+      fprintf(fd,"%sREQUEST CODE=%d==%.*s,URI=%.*s,VERSION=%.*s\n",prefix,i,
328 328
 	    payload[METHOD_CODE_IDX+1],&msg[payload[METHOD_CODE_IDX]],
329 329
 	    payload[URI_REASON_IDX+1],&msg[payload[URI_REASON_IDX]],
330 330
 	    payload[VERSION_IDX+1],&msg[payload[VERSION_IDX]]);