/[CvsGraph]/cvsgraph/cvsgraph.c
ViewVC logotype

Diff of /cvsgraph/cvsgraph.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Tue Feb 20 22:36:38 2001 UTC revision 1.3, Wed Feb 21 17:30:06 2001 UTC
# Line 605  Line 605 
605  int rev_sort(const void *v1, const void *v2)  int rev_sort(const void *v1, const void *v2)
606  {  {
607  #define REVPTR(t)       (*((revision_t **)t))  #define REVPTR(t)       (*((revision_t **)t))
608          return strcmp(REVPTR(v1)->rev->rev, REVPTR(v2)->rev->rev);          /* FIXME: This can lead to a segfault when no '.' is found */
609            return atoi(strrchr(REVPTR(v1)->rev->rev, '.') + 1) -
610                    atoi(strrchr(REVPTR(v2)->rev->rev, '.') + 1);
611  #undef REVPTR  #undef REVPTR
612  }  }
613    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0