diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2004-10-01 18:48:27 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2004-10-01 18:48:27 +0000 |
commit | aee4661e9650cee724e3bc43287bb58317f44433 (patch) | |
tree | 1f084588a47b0b2e48005d56d8f313842a895123 /Src | |
parent | 3892864c15adae601c9d5a7790d7d1c85d6c559b (diff) | |
download | zsh-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.c | 2 |
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)) |