fixed a bug in the readline support
authorAndrew Tridgell <tridge@samba.org>
Thu, 8 Oct 1998 22:12:13 +0000 (22:12 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 8 Oct 1998 22:12:13 +0000 (22:12 +0000)
source/client/client.c

index 72463966a44581916e41cef6e77c4060d0c9e0b5..9d205b3508bab0cf3d42fa217b57f28fa8d3bb61 100644 (file)
@@ -3654,12 +3654,13 @@ static BOOL process(char *base_directory)
 #ifdef HAVE_LIBREADLINE
 
       {
-       pstring prompt;
+       pstring promptline;
        
        /* Read input using GNU Readline */
 
-       slprintf(prompt, sizeof(prompt) - 1, "smb: %s> ", CNV_LANG(cur_dir));
-       if (!readline(prompt))
+       slprintf(promptline, 
+                sizeof(promptline) - 1, "smb: %s> ", CNV_LANG(cur_dir));
+       if (!readline(promptline))
          break;
 
        /* Copy read line to samba buffer */