aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 1c3b2c3b393..e11b92a494c 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1896,8 +1896,12 @@ Use %% to put a single % into the output.")
1896 strings[i++] = (unsigned char *) u.half[1]; 1896 strings[i++] = (unsigned char *) u.half[1];
1897 } 1897 }
1898#endif 1898#endif
1899 else 1899 else if (i == 0)
1900 /* The first string is treated differently
1901 because it is the format string. */
1900 strings[i++] = XSTRING (args[n])->data; 1902 strings[i++] = XSTRING (args[n])->data;
1903 else
1904 strings[i++] = (unsigned char *) XFASTINT (args[n]);
1901 } 1905 }
1902 1906
1903 /* Make room in result for all the non-%-codes in the control string. */ 1907 /* Make room in result for all the non-%-codes in the control string. */
@@ -1909,7 +1913,8 @@ Use %% to put a single % into the output.")
1909 buf = (char *) alloca (total + 1); 1913 buf = (char *) alloca (total + 1);
1910 buf[total - 1] = 0; 1914 buf[total - 1] = 0;
1911 1915
1912 length = doprnt (buf, total + 1, strings[0], end, i-1, strings + 1); 1916 length = doprnt_lisp (buf, total + 1, strings[0],
1917 end, i-1, strings + 1);
1913 if (buf[total - 1] == 0) 1918 if (buf[total - 1] == 0)
1914 break; 1919 break;
1915 1920