From d0372689d6e35c05703189e85b2be90eb392258b Mon Sep 17 00:00:00 2001 From: Luke Leighton <lkcl@samba.org> Date: Wed, 21 Jul 1999 00:30:18 +0000 Subject: use pstring for at command instead of fstring (This used to be commit 43d3d2336f0b3c3e332d5abc476223a45592f6c6) --- source3/rpcclient/cmd_atsvc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source3/rpcclient/cmd_atsvc.c b/source3/rpcclient/cmd_atsvc.c index 322ef71c39..d0f2e716a0 100644 --- a/source3/rpcclient/cmd_atsvc.c +++ b/source3/rpcclient/cmd_atsvc.c @@ -169,7 +169,7 @@ scheduler add job void cmd_at(struct client_info *info) { uint16 nt_pipe_fnum; - fstring temp; + pstring temp; fstring dest_wks; BOOL add = False; BOOL del = False; @@ -180,7 +180,7 @@ void cmd_at(struct client_info *info) uint32 monthdays = 0; uint8 weekdays = 0; uint8 flags = JOB_NONINTERACTIVE; - fstring command; + pstring command; while (next_token(NULL, temp, NULL, sizeof(temp))) { @@ -274,12 +274,12 @@ void cmd_at(struct client_info *info) while (True) { - fstrcat(command, temp); + safe_strcat(command, temp, sizeof(command)); if (!next_token(NULL, temp, NULL, sizeof(temp))) break; - fstrcat(command, " "); + safe_strcat(command, " ", sizeof(command)); } break; @@ -291,8 +291,8 @@ void cmd_at(struct client_info *info) return; } - fstrcpy(dest_wks, "\\\\"); - fstrcat(dest_wks, info->dest_host); + safe_strcpy(dest_wks, "\\\\", sizeof(dest_wks)); + safe_strcat(dest_wks, info->dest_host, sizeof(dest_wks)); strupper(dest_wks); /* open scheduler session. */ -- cgit