aboutsummaryrefslogtreecommitdiff
path: root/src/boot.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-01-08 12:06:54 -0500
committerKevin O'Connor <kevin@koconnor.net>2011-01-08 12:06:54 -0500
commit9e881a3821b045c9b75c64e9c349dc82b276df28 (patch)
treec711539acab1466efd5e2047557601d293f42340 /src/boot.c
parent3c241edf3d7ef29c21e63ab74cfc7cb6f4a92ab3 (diff)
downloadseabios-9e881a3821b045c9b75c64e9c349dc82b276df28.zip
seabios-9e881a3821b045c9b75c64e9c349dc82b276df28.tar.gz
seabios-9e881a3821b045c9b75c64e9c349dc82b276df28.tar.bz2
Extract space trimming code from ATA and use in USB and bootorder code.
Introduce function nullTrailingSpace() that nulls blank characters from the end of a string. Use this function in the ATA, USB MSC, and bootorder code.
Diffstat (limited to 'src/boot.c')
-rw-r--r--src/boot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot.c b/src/boot.c
index e5475a2..b59794e 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -51,6 +51,7 @@ loadBootOrder(void)
f = strchr(f, '\n');
if (f)
*(f++) = '\0';
+ nullTrailingSpace(Bootorder[i]);
dprintf(3, "%d: %s\n", i+1, Bootorder[i]);
i++;
} while (f);