~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getwd.c

  • Committer: Brian Aker
  • Date: 2008-09-04 18:16:51 UTC
  • Revision ID: brian@tangent.org-20080904181651-kydoxckk145z99b8
strend remove

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
#else
72
72
#error "No way to get current directory"
73
73
#endif
74
 
    if (*((pos=strend(buf))-1) != FN_LIBCHAR)  /* End with FN_LIBCHAR */
 
74
    if (*((pos= strchr(buf, '\0'))-1) != FN_LIBCHAR)  /* End with FN_LIBCHAR */
75
75
    {
76
76
      pos[0]= FN_LIBCHAR;
77
77
      pos[1]=0;