about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-10-01 18:48:27 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-10-01 18:48:27 +0000
commitaee4661e9650cee724e3bc43287bb58317f44433 (patch)
tree1f084588a47b0b2e48005d56d8f313842a895123 /Src
parent3892864c15adae601c9d5a7790d7d1c85d6c559b (diff)
downloadzsh-aee4661e9650cee724e3bc43287bb58317f44433.tar.gz
zsh-aee4661e9650cee724e3bc43287bb58317f44433.tar.xz
zsh-aee4661e9650cee724e3bc43287bb58317f44433.zip
We can't use "%d" on a histent number (which is a zlong these days).
Changed the sprintf() to convbase().
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/parameter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 01737ca27..1df6631fe 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -1090,7 +1090,7 @@ scanpmhistory(UNUSED(HashTable ht), ScanFunc func, int flags)
 
     while (he) {
 	if (func != scancountparams) {
-	    sprintf(buf, "%d", he->histnum);
+	    convbase(buf, he->histnum, 10);
 	    pm.nam = dupstring(buf);
 	    if ((flags & (SCANPM_WANTVALS|SCANPM_MATCHVAL)) ||
 		!(flags & SCANPM_WANTKEYS))