summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcdgps.c b/lcdgps.c
index 4a768055..38000392 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -149,7 +149,7 @@ int send_lcd(char *buf) {
/* TODO: check return status */
/* read the data */
- res=sockreadline(sd,rcvbuf,255);
+ res=sockreadline(sd,rcvbuf,sizeof(rcvbuf)-1);
/* null-terminate the string before printing */
/* rcvbuf[res-1]=0; FIX-ME: not using this at the moment... */