Closed
Bug 33349
Opened 25 years ago
Closed 24 years ago
Directory name in Create Directory dialog needs to be left aligned
Categories
(SeaMonkey :: Installer, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
M18
People
(Reporter: bugzilla, Assigned: ssu0262)
Details
Attachments
(2 files)
|
1.16 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.12 KB,
patch
|
Details | Diff | Splinter Review |
If you press Browse... on the Select Type dialog you're presented with a Select
a directory dialog.
This dialog needs to be fixed with the following:
- Directory name needs to be left aligned
- Title of dialog should just be Create Directory. The "?" looks a bit odd.
- Text should something like:
The selected folder:
c:\program files\mozilla\
does not exist. Do you want the folder to be created?
| Reporter | ||
Comment 1•25 years ago
|
||
I meant the dialog that appears when the selected directory doesn't exist.
The following still needs to be fixed:
- Directory name needs to be left aligned
Summary: Fix Create Directory dialog → Directory name in Create Directory dialog needs to be left aligned
| Reporter | ||
Comment 2•25 years ago
|
||
Is this because of the:
lstrcpy(szBufTemp, "\n\n ");
in
http://lxr.mozilla.org/seamonkey/source/xpinstall/wizard/windows/setup/dialogs.c
#399
it should just be:
lstrcpy(szBufTemp, "\n\n");
| Reporter | ||
Comment 3•25 years ago
|
||
| Reporter | ||
Comment 4•25 years ago
|
||
Since this is such an easy fix, perhaps someone (Blake) could check it in...?
Keywords: review
The patch rotted. s/399/401/
401 lstrcpy(szBufTemp, "\n\n ");
402 lstrcat(szBufTemp, szBuf);
403 RemoveBackSlash(szBufTemp);
404 lstrcat(szBufTemp, "\n\n");
405 wsprintf(szBufTemp2, szMsgCreateDirectory, szBufTemp);
Bredan is wsprintf something that risks buffer overruns and is there a better
function?
Keywords: approval
Comment 6•25 years ago
|
||
Argh, Windows-specific code! Yes, PR_snprintf should be used instead of any
Morris-worm-recapitulating *sprintf.
/be
Patch checked in. Sorry about the delay. I will try to be more ontop of patches.
We're not using PR_* functions because this is platform specific, native windows
code. Since this is only the windows installer, and not a browser, I'm not too
concerned about buffer overruns (except that I am aware of the possibility and
have taken steps to minimize it).
However, if someone feels strongly different, I can try porting the PR_*
functions used in the browser code. File a bug against the windows installer.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 9•24 years ago
|
||
Just found two other places:
http://lxr.mozilla.org/mozilla/source/xpinstall/wizard/windows/setup/dialogs.c#7
79
http://lxr.mozilla.org/mozilla/source/xpinstall/wizard/windows/setup/dialogs.c#7
94
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 10•24 years ago
|
||
Comment 12•24 years ago
|
||
sr=mscott
| Assignee | ||
Comment 13•24 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 24 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•