diff options
Diffstat (limited to 'pick.c')
-rw-r--r-- | pick.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -310,7 +310,7 @@ static Boolean ParseRow(RowList row) case RTother: XtSetArg(args[0], XtNstring, &other); XtGetValues(row->wlist[2]->widget, args, (Cardinal) 1); - (void) sprintf(str, "--%s", other); + snprintf(str, sizeof(str), "--%s", other); AppendArgv(str); break; } @@ -379,7 +379,7 @@ static void ExecOK( XtGetValues(row0->wlist[3]->widget, args, (Cardinal) 1); if (TocGetSeqNamed(toc, fromseq) == NULL) { char str[200]; - (void) sprintf(str, "Sequence \"%s\" doesn't exist!", fromseq); + snprintf(str, sizeof(str), "Sequence \"%s\" doesn't exist!", fromseq); PopupError(pick->scrn->parent, str); return; } @@ -747,7 +747,7 @@ void AddPick(Scrn scrn, Toc toc, char *fromseq, char *toseq) } pick->toc = toc; InitGeneral(pick, fromseq, toseq); - (void) sprintf(str, "Pick: %s", TocName(toc)); + snprintf(str, sizeof(str), "Pick: %s", TocName(toc)); ChangeLabel(pick->label, str); StoreWindowName(scrn, str); } |