diff nt/runemacs.c @ 367:a4f53d9b3154 r21-1-13

Import from CVS: tag r21-1-13
author cvs
date Mon, 13 Aug 2007 11:01:07 +0200
parents 19dcec799385
children cc15677e0335
line wrap: on
line diff
--- a/nt/runemacs.c	Mon Aug 13 11:00:13 2007 +0200
+++ b/nt/runemacs.c	Mon Aug 13 11:01:07 2007 +0200
@@ -114,6 +114,12 @@
                 else
                   {
                     strcat(new_cmdline, "\\");
+		    /* #### Horrible kludge to get round 1.1.6 bug in readlink. */
+                    p = strrchr (real_name, '.');
+                    if (p[1] == 'e' || p[1] == 'E'
+			&& p[2] == 'x' || p[2] == 'X'
+			&& p[3] == 'e' || p[3] == 'E')
+		      p[4] = 0;
                     strcat(new_cmdline, real_name);
                     strcat(new_cmdline, " ");
                   }