--- src/filehandling_functions.c.orig Fri Mar 17 00:15:02 2006 +++ src/filehandling_functions.c Fri Mar 17 15:57:06 2006 @@ -139,14 +139,13 @@ char name[256]; char file[256]; int i; + char *nameend, *filestart, *fileend, *dot; id = opendirfile(0); if (!id) return 0; read_item(id, type, message, lines); - - char *nameend, *filestart, *fileend, *dot; /* search for node-links in every line */ for (i = 1; i < Lines; i++) @@ -163,6 +162,7 @@ /* skip this hit if it is not a perfect match and * we have already found a previous partial match */ + char *tmp = name; if ( ! ( (nameend - Message[i]) - 2 == filenamelen ) && goodHit ) { @@ -170,7 +170,6 @@ } /* find the name of the node link */ - char *tmp = name; strncpy(file, filestart + 1, fileend - filestart - 1); file[fileend - filestart - 1] = 0; strncpy(name, fileend + 1, dot - fileend - 1); git.cgi/'>cgit logo index : freebsd-ports-gnome
FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cpbk
Commit message (Expand)AuthorAgeFilesLines
* For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-211-1/+0
* - Add SHA256pav2005-11-261-0/+1
* Remove obsolete mastersites.linimon2005-09-281-3/+1
* Use PLIST_FILES.trevor2004-02-062-1/+1