CVS: rdesktop disk.c,1.37,1.38
Peter Åstrand <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23106 Modified Files: disk.c Log Message: disk_create: When filename is zero bytes long, we mustn't reference filename[strlen(filename)-1]. Index: disk.c =================================================================== RCS file: /cvsroot/rdesktop/rdesktop/disk.c,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** disk.c 21 Oct 2004 08:13:33 -0000 1.37 --- disk.c 21 Oct 2004 08:28:03 -0000 1.38 *************** *** 242,247 **** mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; ! ! if (filename[strlen(filename) - 1] == '/') filename[strlen(filename) - 1] = 0; sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename); --- 242,246 ---- mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; ! if (*filename && filename[strlen(filename) - 1] == '/') filename[strlen(filename) - 1] = 0; sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename); ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl