diff options
author | Luke Leighton <lkcl@samba.org> | 1999-07-21 00:30:18 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-07-21 00:30:18 +0000 |
commit | d0372689d6e35c05703189e85b2be90eb392258b (patch) | |
tree | 7e7590bdf48ac300c01e230265b1ad0b5f8a3f10 /source3 | |
parent | 77fe46b5f56b7bdb58af21d27685236c3b358881 (diff) | |
download | samba-d0372689d6e35c05703189e85b2be90eb392258b.tar.gz samba-d0372689d6e35c05703189e85b2be90eb392258b.tar.bz2 samba-d0372689d6e35c05703189e85b2be90eb392258b.zip |
use pstring for at command instead of fstring
(This used to be commit 43d3d2336f0b3c3e332d5abc476223a45592f6c6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/cmd_atsvc.c | 12 |
1 files 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. */ |