Diff for /Amaya/amaya/templates.c between versions 1.83 and 1.84

version 1.83, 2006/11/15 13:41:40 version 1.84, 2006/11/16 10:14:58
Line 120  static int LoadTemplateRepositoryList (P Line 120  static int LoadTemplateRepositoryList (P
   sprintf (path, "%s%ctemplate-repositories.dat", homePath, DIR_SEP);    sprintf (path, "%s%ctemplate-repositories.dat", homePath, DIR_SEP);
       
   file = TtaReadOpen ((char *)path);    file = TtaReadOpen ((char *)path);
   c = (unsigned char*)path;    if (!file)
   *c = EOS;    {
       /* The config file dont exist, create it. */
       file = TtaWriteOpen ((char *)path);
       fprintf(file, "%s%ctemplates%cen\n", homePath, DIR_SEP, DIR_SEP);
       TtaWriteClose (file);
       /* Retry to open it.*/
       file = TtaReadOpen ((char *)path);
     }
     
   if (file)    if (file)
   {    {
       c = (unsigned char*)path;
       *c = EOS;
     while (TtaReadByte (file, c)){      while (TtaReadByte (file, c)){
       if (*c==13 || *c==EOL)        if (*c==13 || *c==EOL)
         *c = EOS;          *c = EOS;

Removed from v.1.83  
changed lines
  Added in v.1.84


Webmaster