[MPlayer-dev-eng] [PATCH 2/2] subreader: Check the %n result variable.

Nicolas George nicolas.george at normalesup.org
Mon May 26 11:06:18 CEST 2014


Le quintidi 5 prairial, an CCXXII, Reimar Döffinger a écrit :
> This ensures we had an actual match against the
> full string.

Sorry to have pointed the obvious in my previous mail. The change looks
completely valid.

> Ideally this would be possible by checking for a one larger
> return value, but unfortunately the standard is unclear if
> %n arguments should be counted or not...

Actually, the standard is perfectly clear... with the wrong choice:

"Execution of a %n conversion specification shall not increment the
assignment count returned at the completion of execution of the function."

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20140526/582ab268/attachment.asc>


More information about the MPlayer-dev-eng mailing list