diff --git a/src/core/ft/ft.c b/src/core/ft/ft.c index 1abebc9..68e2342 100644 --- a/src/core/ft/ft.c +++ b/src/core/ft/ft.c @@ -474,7 +474,7 @@ LIB3270_EXPORT int lib3270_ft_start(H3270 *hSession) { // Erase the line and enter the command. flen = kybd_prime(ft->host); if (!flen || flen < strlen(buffer) - 1) { - lib3270_write_log(ft->host, "Unable to send command \"%s\" (flen=%d szBuffer=%d)",buffer,flen,strlen(buffer)); + lib3270_write_log(ft->host, "ft", "Unable to send command \"%s\" (flen=%d szBuffer=%ld)",buffer,flen,strlen(buffer)); ft_failed(ft,_( "Unable to send file-transfer request" )); return errno = EINVAL; } diff --git a/src/core/ft/ft_dft.c b/src/core/ft/ft_dft.c index a7d99f5..dbf0618 100644 --- a/src/core/ft/ft_dft.c +++ b/src/core/ft/ft_dft.c @@ -383,7 +383,7 @@ static void dft_get_request(H3270 *hSession) { /* Binary read. */ numread = fread(bufptr, 1, numbytes, ft->local_file); if (numread <= 0) { - lib3270_write_log(hSession,"Error %s reading source file (rc=%d)",strerror(errno),errno); + lib3270_write_log(hSession,"ft","Error %s reading source file (rc=%d)",strerror(errno),errno); break; } diff --git a/src/core/see.c b/src/core/see.c index 8d6fa84..6d72f38 100644 --- a/src/core/see.c +++ b/src/core/see.c @@ -293,24 +293,24 @@ static const char * see_validation(unsigned char setting) { (void) strcpy(buf, ""); if (setting & XAV_FILL) { - (void) strcat(buf, paren); - (void) strcat(buf, "fill"); + (void) strncat(buf, paren, 63); + (void) strncat(buf, "fill"); paren = ","; } if (setting & XAV_ENTRY) { - (void) strcat(buf, paren); - (void) strcat(buf, "entry"); + (void) strncat(buf, paren, 63); + (void) strncat(buf, "entry"); paren = ","; } if (setting & XAV_TRIGGER) { - (void) strcat(buf, paren); - (void) strcat(buf, "trigger"); + (void) strncat(buf, paren, 63); + (void) strncat(buf, "trigger"); paren = ","; } if (strcmp(paren, "(")) - (void) strcat(buf, ")"); + (void) strncat(buf, ")", 63); else - (void) strcpy(buf, "(none)"); + (void) strncpy(buf, "(none)", 63); return buf; } -- libgit2 0.21.2