On Thu, 11 Jul 2002, Petr Mladek wrote: > I reproduced this problem and found that it exists when > gpm-syn.conf contains TABs. > I think that the best solution is to fix strtok command. > I suppose to use: > token = strtok (NULL, "[] \t\n"); I hadnt thought of this. It seems as a fair explanation and solution. Peter -- E-Mail: pebl@xxxxxxxxxx Real name: Peter Berg Larsen Where: Department of Computer Science, Copenhagen Uni., Denmark
--- src/synaptics.c +++ src/synaptics.c @@ -1801,7 +1801,7 @@ }else{ while (fgets (line, 80, config)) { if (line [0] == '[') { - if ( (token = strtok (line, "[] ")) ) { + if ( (token = strtok (line, "[] \t\n")) ) { param = 0; /* which param is it */ @@ -1814,7 +1814,7 @@ if (!param_data [param].name) { gpm_report (GPM_PR_WARN,"Unknown parameter %s", token); } else { - token = strtok (NULL, "[] "); + token = strtok (NULL, "[] \t\n"); switch (param_data [param].p_type) { case Integer_Param: