/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 973 by astrand, Thu Aug 4 12:44:10 2005 UTC revision 974 by astrand, Thu Aug 4 12:50:15 2005 UTC
# Line 382  main(int argc, char *argv[]) Line 382  main(int argc, char *argv[])
382          locale = setlocale(LC_ALL, "");          locale = setlocale(LC_ALL, "");
383          if (locale)          if (locale)
384          {          {
385                  locale = strdup(locale);                  locale = xstrdup(locale);
                 if (locale == NULL)  
                 {  
                         perror("strdup");  
                         exit(1);  
                 }  
386          }          }
387    
388  #endif  #endif
# Line 939  xmalloc(int size) Line 934  xmalloc(int size)
934                  exit(1);                  exit(1);
935          }          }
936          return mem;          return mem;
937    }
938    
939    /* strdup */
940    char *
941    xstrdup(const char *s)
942    {
943            char *mem = strdup(s);
944            if (mem == NULL)
945            {
946                    perror("strdup");
947                    exit(1);
948            }
949            return mem;
950  }  }
951    
952  /* realloc; exit if out of memory */  /* realloc; exit if out of memory */

Legend:
Removed from v.973  
changed lines
  Added in v.974

  ViewVC Help
Powered by ViewVC 1.1.26