/[rdesktop]/jpeg/rdesktop/trunk/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 /jpeg/rdesktop/trunk/rdesktop.c

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

revision 10 by matty, Tue Aug 15 10:23:24 2000 UTC revision 17 by matty, Thu Sep 28 15:54:11 2000 UTC
# Line 21  Line 21 
21  #include <stdlib.h>     /* malloc realloc free */  #include <stdlib.h>     /* malloc realloc free */
22  #include <unistd.h>     /* read close getuid getgid getpid getppid gethostname */  #include <unistd.h>     /* read close getuid getgid getpid getppid gethostname */
23  #include <fcntl.h>      /* open */  #include <fcntl.h>      /* open */
 #include <getopt.h>     /* getopt */  
24  #include <pwd.h>        /* getpwuid */  #include <pwd.h>        /* getpwuid */
25  #include <sys/stat.h>   /* stat */  #include <sys/stat.h>   /* stat */
26  #include <sys/time.h>   /* gettimeofday */  #include <sys/time.h>   /* gettimeofday */
# Line 60  int main(int argc, char *argv[]) Line 59  int main(int argc, char *argv[])
59          int c;          int c;
60    
61          STATUS("rdesktop: A Remote Desktop Protocol client.\n");          STATUS("rdesktop: A Remote Desktop Protocol client.\n");
62          STATUS("Version "VERSION". Copyright (C) 1999-2000 Matt Chapman.\n\n");          STATUS("Version "VERSION". Copyright (C) 1999-2000 Matt Chapman.\n");
63            STATUS("See http://www.rdesktop.org/ for more information.\n\n");
64    
65          while ((c = getopt(argc, argv, "u:n:w:h:k:mbl?")) != -1)          while ((c = getopt(argc, argv, "u:n:w:h:k:mbl?")) != -1)
66          {          {
# Line 139  int main(int argc, char *argv[]) Line 139  int main(int argc, char *argv[])
139    
140          STATUS("Connection successful.\n");          STATUS("Connection successful.\n");
141    
142          snprintf(title, sizeof(title), "rdesktop - %s", server);          strcpy(title, "rdesktop - ");
143            strncat(title, server, sizeof(title));
144    
145          if (ui_create_window(title))          if (ui_create_window(title))
146          {          {
147                  rdp_main_loop();                  rdp_main_loop();

Legend:
Removed from v.10  
changed lines
  Added in v.17

  ViewVC Help
Powered by ViewVC 1.1.26