return;
}
safestrncpy(tbuf, ch->h_name, 64);
- tbuf[63] = 0;
}
end = pos;
}
- safestrncpy(urlbuf, &buf[start], end - start);
+ strncpy(urlbuf, &buf[start], end - start);
urlbuf[end - start] = 0;
- safestrncpy(outbuf, buf, start);
+ strncpy(outbuf, buf, start);
sprintf(&outbuf[start], "%cA HREF=%c%s%c TARGET=%c%s%c%c%s%c/A%c",
LB, QU, urlbuf, QU, QU, TARGET, QU, RB, urlbuf, LB, RB);
strcat(outbuf, &buf[end]);
if ((size = vsprintf(p, fmt, argp)) >= max)
size = -1;
- safestrncpy(buf, p, max);
+ strncpy(buf, p, max);
buf[max - 1] = 0;
free(p);
return size;
strcpy(inbuf, "");
}
else {
- safestrncpy(outbuf, inbuf, pos);
+ strncpy(outbuf, inbuf, pos);
outbuf[pos] = 0;
wprintf("%s", outbuf);
strcpy(inbuf, &inbuf[pos]);
for (i=strlen(inbuf); i>=0; --i) {
if (inbuf[i]=='>') pos = i;
}
- safestrncpy(key, &inbuf[2], pos-2);
+ strncpy(key, &inbuf[2], pos-2);
key[pos-2] = 0;
print_value_of(key);
strcpy(inbuf, &inbuf[pos+1]);
memset(&addr, 0, sizeof(addr));
addr.sun_family = AF_UNIX;
- safestrncpy(addr.sun_path, sockpath, sizeof addr.sun_path);
+ strncpy(addr.sun_path, sockpath, sizeof addr.sun_path);
s = socket(AF_UNIX, SOCK_STREAM, 0);
if (s < 0) {
if ((nlpos > colonpos) && (colonpos > 0)) {
namebuf = malloc(colonpos + 1);
valuebuf = malloc(nlpos - colonpos + 1);
- safestrncpy(namebuf, ptr, colonpos);
+ strncpy(namebuf, ptr, colonpos);
namebuf[colonpos] = 0;
- safestrncpy(valuebuf, &ptr[colonpos+1], nlpos-colonpos-1);
+ strncpy(valuebuf, &ptr[colonpos+1], nlpos-colonpos-1);
valuebuf[nlpos-colonpos-1] = 0;
if ( (!strcasecmp(namebuf, "end"))