Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
bf4c341e
Commit
bf4c341e
authored
7 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Add printf member functoin to stdio versoin of uifc. This was causing echocfg
v3 to crash when used with the '-iD' option. Oops.
parent
4b8a6336
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/uifc/uifcx.c
+18
-3
18 additions, 3 deletions
src/uifc/uifcx.c
with
18 additions
and
3 deletions
src/uifc/uifcx.c
+
18
−
3
View file @
bf4c341e
/* uifcx.c */
/* Standard I/O Implementation of UIFC (user interface) library */
/* $Id$ */
...
...
@@ -8,7 +6,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright
2010
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright Rob Swindell - http://www.synchro.net/copyright.html
*
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
...
...
@@ -62,6 +60,22 @@ static void umsg(char *str);
static
void
upop
(
char
*
str
);
static
void
sethelp
(
int
line
,
char
*
file
);
/****************************************************************************/
/****************************************************************************/
static
int
uprintf
(
int
x
,
int
y
,
unsigned
attr
,
char
*
fmat
,
...)
{
va_list
argptr
;
char
str
[
MAX_COLS
+
1
];
int
i
;
va_start
(
argptr
,
fmat
);
vsprintf
(
str
,
fmat
,
argptr
);
va_end
(
argptr
);
i
=
printf
(
"%s"
,
str
);
return
(
i
);
}
/****************************************************************************/
/* Initialization function, see uifc.h for details. */
/* Returns 0 on success. */
...
...
@@ -85,6 +99,7 @@ int UIFCCALL uifcinix(uifcapi_t* uifcapi)
api
->
showhelp
=
help
;
api
->
showbuf
=
NULL
;
api
->
timedisplay
=
NULL
;
api
->
printf
=
uprintf
;
setvbuf
(
stdin
,
NULL
,
_IONBF
,
0
);
setvbuf
(
stdout
,
NULL
,
_IONBF
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment