aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drv_serdisplib.c1
-rw-r--r--svn_version.h2
-rw-r--r--widget_text.c8
3 files changed, 10 insertions, 1 deletions
diff --git a/drv_serdisplib.c b/drv_serdisplib.c
index d4b5542..d6fe4b0 100644
--- a/drv_serdisplib.c
+++ b/drv_serdisplib.c
@@ -164,6 +164,7 @@ static int drv_SD_start(const char *section)
sdcd = SDCONN_open(port);
if (sdcd == NULL) {
error("%s: open(%s) failed: %s", Name, port, sd_geterrormsg());
+ info("%s: examples:\n serraw:/dev/ttyS0\n par:/dev/parport0\n USB:<vendor>/<product>", Name);
return -1;
}
diff --git a/svn_version.h b/svn_version.h
index 9d24f76..5df47cf 100644
--- a/svn_version.h
+++ b/svn_version.h
@@ -1 +1 @@
-#define SVN_VERSION "1158"
+#define SVN_VERSION "1192"
diff --git a/widget_text.c b/widget_text.c
index 7c1ee7a..ee178e6 100644
--- a/widget_text.c
+++ b/widget_text.c
@@ -58,6 +58,10 @@
void widget_text_scroll(void *Self)
{
WIDGET *W = (WIDGET *) Self;
+ if (NULL == W || NULL == W->data) {
+ error("Warning: internal data error in Textwidget");
+ return;
+ }
WIDGET_TEXT *T = W->data;
char *prefix = P2S(&T->prefix);
@@ -68,6 +72,10 @@ void widget_text_scroll(void *Self)
int num, len, width, pad;
char *src, *dst;
+ if (NULL == string) {
+ error("Warning: Widget %s has no string", W->name);
+ return;
+ }
num = 0;
len = strlen(string);
width = T->width - strlen(prefix) - strlen(postfix);