lib/DtTerm: Fix copy&paste error
This avoids using an uninitialized variable by using the initialized variable that is obviously the right one in the context.
This commit is contained in:
committed by
Jon Trulson
parent
e2aa3e665b
commit
a5b5eb0f80
@@ -2196,8 +2196,8 @@ _DtTermParseSunMisc /* Misc sun esc seqs */
|
|||||||
case 21:
|
case 21:
|
||||||
XtVaGetValues(sw,XmNtitle, &title, NULL);
|
XtVaGetValues(sw,XmNtitle, &title, NULL);
|
||||||
fmt = "\033]l%s\033\\";
|
fmt = "\033]l%s\033\\";
|
||||||
if (strlen(icon) + strlen(fmt) + 1 >= sizeof(buf))
|
if (strlen(title) + strlen(fmt) + 1 >= sizeof(buf))
|
||||||
s = XtMalloc(strlen(icon) + strlen(fmt) + 1);
|
s = XtMalloc(strlen(title) + strlen(fmt) + 1);
|
||||||
else
|
else
|
||||||
s = buf;
|
s = buf;
|
||||||
sprintf(s, "%s", fmt);
|
sprintf(s, "%s", fmt);
|
||||||
|
|||||||
Reference in New Issue
Block a user