ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/trunk/contrib/opie/libopie/readrec.c
(Generate patch)

Comparing trunk/contrib/opie/libopie/readrec.c (file contents):
Revision 3403 by laffer1, Sun Oct 4 16:04:05 2009 UTC vs.
Revision 3404 by laffer1, Thu May 27 13:49:03 2010 UTC

# Line 141 | Line 141 | int __opiereadrec FUNCTION((opie), struct opie *opie)
141      
142      if (c = strchr(opie->opie_principal, ':'))
143        *c = 0;
144    if (strlen(opie->opie_principal) > OPIE_PRINCIPAL_MAX)
145      (opie->opie_principal)[OPIE_PRINCIPAL_MAX] = 0;
144      
145 <    strcpy(principal, opie->opie_principal);
145 >    strlcpy(principal, opie->opie_principal, sizeof(principal));
146      
147      do {
148        if ((opie->opie_recstart = ftell(f)) < 0)

Comparing trunk/contrib/opie/libopie/readrec.c (property cvs2svn:cvs-rev):
Revision 3403 by laffer1, Sun Oct 4 16:04:05 2009 UTC vs.
Revision 3404 by laffer1, Thu May 27 13:49:03 2010 UTC

# Line 1 | Line 1
1 < 1.2
1 > 1.3

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines