Lines Matching refs:sp2
105 const char *sp1, *sp2; /* Search result */ in vms_load() local
135 sp2 = strrchr(filename, '>'); in vms_load()
137 sp1 = sp2; in vms_load()
138 if (sp2 != NULL && sp2 > sp1) in vms_load()
139 sp1 = sp2; in vms_load()
147 sp2 = strchr(sp1, '.'); in vms_load()
152 if (sp2 != NULL && sp2[1] == ';') in vms_load()
158 if (sp2 == NULL) { in vms_load()
159 sp2 = strchr(sp1, ';'); in vms_load()
166 if (sp2 == NULL) in vms_load()
167 sp2 = sp1 + strlen(sp1); in vms_load()
170 if (sp2 - sp1 > FILENAME_MAX in vms_load()
171 || (sp1 - filename) + strlen(sp2) > FILENAME_MAX) { in vms_load()
182 strncpy(p->filename, sp1, sp2 - sp1); in vms_load()
183 p->filename[sp2 - sp1] = '\0'; in vms_load()
189 if (*sp2 == '.') in vms_load()
190 sp2++; in vms_load()
192 strcat(p->imagename, sp2); in vms_load()