diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-01-08 12:06:54 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-01-08 12:06:54 -0500 |
commit | 9e881a3821b045c9b75c64e9c349dc82b276df28 (patch) | |
tree | c711539acab1466efd5e2047557601d293f42340 /src/boot.c | |
parent | 3c241edf3d7ef29c21e63ab74cfc7cb6f4a92ab3 (diff) | |
download | seabios-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |