summaryrefslogtreecommitdiff
path: root/dgpsip.c
diff options
context:
space:
mode:
Diffstat (limited to 'dgpsip.c')
-rw-r--r--dgpsip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgpsip.c b/dgpsip.c
index 77615b4d..15918f63 100644
--- a/dgpsip.c
+++ b/dgpsip.c
@@ -98,12 +98,12 @@ void dgpsip_autoconnect(struct gps_context_t *context,
const char *serverlist)
/* tell the library to talk to the nearest DGPSIP server */
{
- char buf[BUFSIZ];
struct dgps_server_t {
double lat, lon;
- char server[255];
+ char server[257];
double dist;
} keep, hold;
+ char buf[BUFSIZ];
FILE *sfp = fopen(serverlist, "r");
if (sfp == NULL) {