~ubuntu-branches/ubuntu/gutsy/m4/gutsy

« back to all changes in this revision

Viewing changes to lib/strnlen1.c

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2006-11-29 16:53:44 UTC
  • Revision ID: james.westby@ubuntu.com-20061129165344-0qimyyyhh135a7mf
Tags: 1.4.8-1
New upstream release. Lots of fixes, see the NEWS file for details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
size_t
29
29
strnlen1 (const char *string, size_t maxlen)
30
30
{
31
 
  const char *end = memchr (string, '\0', maxlen);
 
31
  const char *end = (const char *) memchr (string, '\0', maxlen);
32
32
  if (end != NULL)
33
33
    return end - string + 1;
34
34
  else