diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbcontrol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 306f7ee269..62019d4036 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -248,10 +248,10 @@ static BOOL do_command(char *dest, char *msg_name, char *params) int myargc; printf("smbcontrol> "); - if (!gets(temp)) break; + if (!fgets(temp, sizeof(temp)-1, stdin)) break; myargc = 0; while ((myargc < 3) && - (myargv[myargc] = strtok(myargc?NULL:temp," \t"))) { + (myargv[myargc] = strtok(myargc?NULL:temp," \t\n"))) { myargc++; } if (!myargc) break; |