diff options
Diffstat (limited to 'ddcprobe/ddcprobe.c')
-rw-r--r-- | ddcprobe/ddcprobe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ddcprobe/ddcprobe.c b/ddcprobe/ddcprobe.c index 48b4afd64..7d1021d3a 100644 --- a/ddcprobe/ddcprobe.c +++ b/ddcprobe/ddcprobe.c @@ -22,6 +22,11 @@ char *snip(char *string) { int i; + + /* This is always a 13 character buffer */ + /* and it's not always terminated. */ + string[12] = '\0'; + while(((i = strlen(string)) > 0) && (isspace(string[i - 1]) || (string[i - 1] == '\n') || |