Small fix for LCD output

Mon, 23 Jun 2014 20:01:27 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 23 Jun 2014 20:01:27 +0200
changeset 70
920eface3ec5
parent 69
df5d983dab1b
child 71
a09c5cdc4022

Small fix for LCD output

thermferm/server.c file | annotate | diff | comparison | revisions
--- a/thermferm/server.c	Mon Jun 23 19:56:54 2014 +0200
+++ b/thermferm/server.c	Mon Jun 23 20:01:27 2014 +0200
@@ -161,6 +161,7 @@
 		srv_send((char *)"201 information follows");
 		for (j = 0; j < 4; j++) {
 		    sprintf(obuf, "                   ");
+		    obuf[20] = '\0';
 		    for (i = 0; i < 20; i++)
 		    	obuf[i]  = lcdbuf[lcdHandle][i][j];
 		    srv_send(obuf);

mercurial