Skip to content

Commit

Permalink
unit1398: fix test
Browse files Browse the repository at this point in the history
It used a <num>$ only for one argument, which is not supported.
  • Loading branch information
bagder committed Dec 20, 2023
1 parent 4028678 commit 971ca84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/unit1398.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fail_unless(rc == 15, "return code should be 15");
fail_unless(!strcmp(output, " 1234 567"), "wrong output");

/* double precision */
rc = curl_msnprintf(output, 24, "%.*1$.99d", 3, 5678);
rc = curl_msnprintf(output, 24, "%2$.*1$.99d", 3, 5678);
fail_unless(rc == 0, "return code should be 0");

UNITTEST_STOP

0 comments on commit 971ca84

Please sign in to comment.