Hola, perdone me, no hablo ucho espanol, pues, voy a escribir en inglés, pero soy frances.
In fact, there is a bug when you want to set a point control on a map. For example, when you type on Linux:
fenix-map -l EXAMPLE.MAP +1=[30,40]
Only, the y coord is modified correctly but the x coord become 0. However, using Linux, this program become useful since there is not other tools. So I think this correction is necesary.
That's why I recompiled the code, with this modification :
void parse_coords (char * text, int * x, int * y)
{
char * comma ;
if (!*text) { *x = *y = -1 ; return ; }
comma = strchr (text, ',') ;
int length=strlen(text)-strlen(comma);
char* text2=malloc(length*sizeof(char));
strncpy(text2, text, length);
if (!comma) fatal_error ("Se requieren dos coordenadas") ;
*x = atoi(text2+1) ;
*y = atoi(comma+1) ;
if (*x < 0 || *y < 0) fatal_error ("Coordenadas incorrectas") ;
free(text2);
}
Thank you for listening to me.
JVC (http://div.france.free.fr)