diff options
author | Bill Nottingham <notting@redhat.com> | 2000-08-09 15:13:37 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2000-08-09 15:13:37 +0000 |
commit | fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47 (patch) | |
tree | c5ccd156e64be09963829e3722dba0ba16a81036 /ddcprobe | |
parent | 0680540d2b94fc13538aa67018ef5134b131c35f (diff) | |
download | anaconda-fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47.tar.gz anaconda-fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47.tar.xz anaconda-fa6a4b5c8ab5a8e4fdcbb39a5cea24fd1408cb47.zip |
tweak ddc fix some, fix it in ddcprobe tookudzu-r0-69
Diffstat (limited to 'ddcprobe')
-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') || |