1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

use pstring for at command instead of fstring

(This used to be commit 43d3d2336f0b3c3e332d5abc476223a45592f6c6)
This commit is contained in:
Luke Leighton 1999-07-21 00:30:18 +00:00
parent 77fe46b5f5
commit d0372689d6

View File

@ -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. */