diff options
Diffstat (limited to 'board/RRvision/RRvision.c')
-rw-r--r-- | board/RRvision/RRvision.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/board/RRvision/RRvision.c b/board/RRvision/RRvision.c index 9d016c59d3..0182d8a335 100644 --- a/board/RRvision/RRvision.c +++ b/board/RRvision/RRvision.c @@ -93,14 +93,16 @@ const uint sdram_table[] = int checkboard (void) { - char *s = getenv ("serial#"); + char buf[64]; + int i; + int l = getenv_f("serial#", buf, sizeof(buf)); puts ("Board: RRvision "); - for (; s && *s; ++s) { - if (*s == ' ') + for (i=0; i < l; ++i) { + if (buf[i] == ' ') break; - putc (*s); + putc (buf[i]); } putc ('\n'); |