patch-libcompat_strchrnul_c 362 B

12345678910111213
  1. $OpenBSD: patch-libcompat_strchrnul_c,v 1.1 2016/01/22 11:38:23 sthen Exp $
  2. --- libcompat/strchrnul.c.orig Wed Jan 20 01:28:25 2016
  3. +++ libcompat/strchrnul.c Wed Jan 20 01:29:38 2016
  4. @@ -12,7 +12,7 @@ char *strchrnul(const char *s, int c)
  5. if (p == NULL)
  6. {
  7. - return s + strlen(s);
  8. + return (char *)s + strlen(s);
  9. }
  10. else
  11. {