# HG changeset patch # User Matti Hamalainen # Date 1456746552 -7200 # Node ID bc5567f5e305187e0b9aca5eab423b8ff1e313ca # Parent f6b9991d76ed9b4e0feb5df8746ad34f76fd5263 Check %p for ll and L modifiers and error out on them. diff -r f6b9991d76ed -r bc5567f5e305 th_string.c --- a/th_string.c Mon Feb 29 13:46:01 2016 +0200 +++ b/th_string.c Mon Feb 29 13:49:12 2016 +0200 @@ -421,6 +421,9 @@ break; case 'p': + if (f_flags & (TH_PF_LONG | TH_PF_LONGLONG)) + return -120; + #if (TH_PTRSIZE == 32) f_flags |= TH_PF_LONG; #elif (TH_PTRSIZE == 64)