Changeset 501 in ntrip for trunk/ntripclient
- Timestamp:
- Oct 8, 2007, 10:03:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ntripclient/ntripclient.c
r500 r501 1 1 /* 2 2 Easy example NTRIP client for POSIX. 3 $Id: ntripclient.c,v 1.3 2 2007/09/18 10:39:19 stoeckerExp $3 $Id: ntripclient.c,v 1.33 2007/10/05 15:40:24 stuerze Exp $ 4 4 Copyright (C) 2003-2005 by Dirk Stoecker <soft@dstoecker.de> 5 5 … … 45 45 46 46 /* CVS revision and version */ 47 static char revisionstr[] = "$Revision: 1.3 2$";48 static char datestr[] = "$Date: 2007/ 09/18 10:39:19$";47 static char revisionstr[] = "$Revision: 1.33 $"; 48 static char datestr[] = "$Date: 2007/10/05 15:40:24 $"; 49 49 50 50 enum MODE { HTTP = 1, RTSP = 2, NTRIP1 = 3, AUTO = 4, END }; … … 81 81 { "user", required_argument, 0, 'u'}, 82 82 { "nmea", required_argument, 0, 'n'}, 83 { "mode", required_argument, 0, 'M'}, 83 84 { "help", no_argument, 0, 'h'}, 84 85 {0,0,0,0}}; … … 113 114 static char buf[128]; 114 115 char *urlenc = buf; 115 char *bufend = buf + sizeof(buf) ;116 117 while(*req && urlenc !=bufend)116 char *bufend = buf + sizeof(buf) - 3; 117 118 while(*req && urlenc < bufend) 118 119 { 119 120 if(isalnum(*req) … … 127 128 *req++; 128 129 } 129 } 130 } 131 *urlenc = 0; 130 132 return buf; 131 133 } … … 292 294 case 'p': args->password = optarg; break; 293 295 case 'd': 294 if( *optarg == '?')296 if(optarg && *optarg == '?') 295 297 args->data = encodeurl(optarg); 296 298 else
Note:
See TracChangeset
for help on using the changeset viewer.