diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 17:50:19 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 17:50:19 +0200 |
commit | a51427608e2f4543ae0cb0598517a1e4f6b0928b (patch) | |
tree | 7c4b0148c4d1b3d5224fb55dd772db1dd55baccb /win32 | |
parent | 4520cf440178ef98e859759e3fdbed4921703ac2 (diff) | |
download | xine-lib-a51427608e2f4543ae0cb0598517a1e4f6b0928b.tar.gz xine-lib-a51427608e2f4543ae0cb0598517a1e4f6b0928b.tar.bz2 |
Avoid transforming a string to uppecase, and avoid one call to strlen().
Instead of looping through the directive string as returned by
sscanf() and transforming each character to its uppercase version, use
strcasestr to run a case-insensitive sub-string search.
Also avoid runing multiple strlen() calls per each line, use strncpy
instead.
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions