John E. Malmberg [Mon, 2 Jan 2006 14:05:43 +0000 (09:05 -0500)]
From: "John E. Malmberg" <wb8tyw@qsl.net>
Message-id: <
43B97987.70201@qsl.net>
p4raw-id: //depot/perl@26581
else retspec = __fileify_retbuf;
cp1 = esa;
cp2 = retspec;
- while (*cp1 != ':') *(cp2++) = *(cp1++);
+ while ((*cp1 != ':') && (*cp1 != '\0')) *(cp2++) = *(cp1++);
strcpy(cp2,":[000000]");
cp1 += 2;
strcpy(cp2+9,cp1);