aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorErwan Velu <erwan.velu@free.fr>2009-11-08 21:36:02 +0100
committerErwan Velu <erwan.velu@free.fr>2009-11-08 21:36:02 +0100
commit43fde054dd2c3615461000325afbe08ea3e56823 (patch)
tree9bedf24d34b6f0c040134f7eb867feba7c8d162b /com32/hdt/hdt-cli.c
parent70e386288cd0e97211d3431db4948394ee235c86 (diff)
downloadsyslinux-43fde054dd2c3615461000325afbe08ea3e56823.tar.gz
syslinux-43fde054dd2c3615461000325afbe08ea3e56823.tar.xz
syslinux-43fde054dd2c3615461000325afbe08ea3e56823.zip
hdt: Fixing building warning
Impact: Avoid warning during compilation Avoid warning during gcc compilation
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 060f953b..892e5fbd 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -764,7 +764,8 @@ void start_auto_mode(struct s_hardware *hardware)
/* Searching & saving all commands */
mypch = strtok (temp,AUTO_SEPARATOR);
while (mypch != NULL) {
- if ((strlen(remove_spaces(mypch))>0) && (remove_spaces(mypch)[0] != AUTO_SEPARATOR)) {
+ if ((strlen(remove_spaces(mypch))>0) &&
+ (remove_spaces(mypch)[0] != AUTO_SEPARATOR[0])) {
nb_commands++;
if ((commands[nb_commands]=malloc(AUTO_COMMAND_SIZE)) != NULL) {
sprintf(commands[nb_commands],"%s",remove_spaces(mypch));