[riot-commits] [RIOT-OS/RIOT] 237e3f: sys/posix: fix strncasecmp

Oleg Hahm oleg at hobbykeller.org
Mon Feb 23 17:22:18 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 237e3f4dcb517a80cb58499ef3e73fccf06d1a34
      https://github.com/RIOT-OS/RIOT/commit/237e3f4dcb517a80cb58499ef3e73fccf06d1a34
  Author: José Roberto de Souza <jose.souza at intel.com>
  Date:   2015-02-23 (Mon, 23 Feb 2015)

  Changed paths:
    M sys/posix/strings.c

  Log Message:
  -----------
  sys/posix: fix strncasecmp

This should be a OR or when comparing only parts os strings would
return a wrong value.

const char *first = "testA";
const char *second = "test";
uint8_t contains = strncasecmp(first, second, strlen(second));


  Commit: 3e2a7a4f48e03555aa7f8f25ed7ad00d043f8995
      https://github.com/RIOT-OS/RIOT/commit/3e2a7a4f48e03555aa7f8f25ed7ad00d043f8995
  Author: Oleg Hahm <oleg at hobbykeller.org>
  Date:   2015-02-23 (Mon, 23 Feb 2015)

  Changed paths:
    M sys/posix/strings.c

  Log Message:
  -----------
  Merge pull request #2478 from zehortigoza/strncasecmp

Fix implementation of strncasecmp()


Compare: https://github.com/RIOT-OS/RIOT/compare/258083323aeb...3e2a7a4f48e0


More information about the commits mailing list