getcap.c (11659) | getcap.c (29574) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Casey Leedom of Lawrence Livermore National Laboratory. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 721 unchanged lines hidden (view full) --- 730 (void)cgetclose(); 731 return (-1); 732 } 733 } else 734 line[len - 1] = '\0'; 735 } 736 } 737 rp = buf; | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Casey Leedom of Lawrence Livermore National Laboratory. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 721 unchanged lines hidden (view full) --- 730 (void)cgetclose(); 731 return (-1); 732 } 733 } else 734 line[len - 1] = '\0'; 735 } 736 } 737 rp = buf; |
738 for(cp = nbuf; *cp != NULL; cp++) | 738 for(cp = nbuf; *cp != '\0'; cp++) |
739 if (*cp == '|' || *cp == ':') 740 break; 741 else 742 *rp++ = *cp; 743 744 *rp = '\0'; 745 /* 746 * XXX --- 303 unchanged lines hidden --- | 739 if (*cp == '|' || *cp == ':') 740 break; 741 else 742 *rp++ = *cp; 743 744 *rp = '\0'; 745 /* 746 * XXX --- 303 unchanged lines hidden --- |