]> git.proxmox.com Git - mirror_edk2.git/commit
StdLib: Fix pointer arithmetic issues in the strncasecmp function.
authorDaryl McDaniel <daryl.mcdaniel@intel.com>
Fri, 13 Sep 2013 00:46:19 +0000 (00:46 +0000)
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Sep 2013 00:46:19 +0000 (00:46 +0000)
commit3a2f8f421648cbf6282b66e28f69df0740b76467
treed062cc34a14a89650b50a504ea7b893458f971a6
parentac7f472be7d0b78faf256bec5cba8a937a555133
StdLib: Fix pointer arithmetic issues in the strncasecmp function.

The original Linux code tried to be too fancy so the internal pointers got out of sync.
Rewrote the function to at least be more clear.
Regardless, it now works properly.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed by: matthew.stanbro@intel.com
Reviewed by: erik.c.bjorge@intel.com

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14664 6f19259b-4bc3-4df7-8a09-765794883524
StdLib/LibC/String/strncasecmp.c