summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sftp-int.c b/sftp-int.c
index c236f6dac..fd649822a 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -28,7 +28,7 @@
28/* XXX: recursive operations */ 28/* XXX: recursive operations */
29 29
30#include "includes.h" 30#include "includes.h"
31RCSID("$OpenBSD: sftp-int.c,v 1.21 2001/02/12 20:53:33 stevesk Exp $"); 31RCSID("$OpenBSD: sftp-int.c,v 1.22 2001/02/14 09:46:03 djm Exp $");
32 32
33#include "buffer.h" 33#include "buffer.h"
34#include "xmalloc.h" 34#include "xmalloc.h"
@@ -204,11 +204,12 @@ parse_getput_flags(const char **cpp, int *pflag)
204 /* Check for flags */ 204 /* Check for flags */
205 if (cp[0] == '-' && cp[1] && strchr(WHITESPACE, cp[2])) { 205 if (cp[0] == '-' && cp[1] && strchr(WHITESPACE, cp[2])) {
206 switch (cp[1]) { 206 switch (cp[1]) {
207 case 'p':
207 case 'P': 208 case 'P':
208 *pflag = 1; 209 *pflag = 1;
209 break; 210 break;
210 default: 211 default:
211 error("Invalid flag -%c", *cp); 212 error("Invalid flag -%c", cp[1]);
212 return(-1); 213 return(-1);
213 } 214 }
214 cp += 2; 215 cp += 2;