projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* support/regression/tests/bug1057979.c:
[fw/sdcc]
/
device
/
lib
/
pic16
/
libc
/
stdio
/
vfprintf.c
diff --git
a/device/lib/pic16/libc/stdio/vfprintf.c
b/device/lib/pic16/libc/stdio/vfprintf.c
index 95d8b002a4b7045614bb3a346d7df5328595574f..304bb01b03d522e5f5db7a9b94fe0f24a855138e 100644
(file)
--- a/
device/lib/pic16/libc/stdio/vfprintf.c
+++ b/
device/lib/pic16/libc/stdio/vfprintf.c
@@
-122,6
+122,14
@@
*/
#define EXTRA_INTEGER
*/
#define EXTRA_INTEGER
+#ifdef BINARY_SPECIFIER
+/* "%lb" = "0" - "11111111111111111111111111111111" */
+# define BUF_SIZE 33
+#else
+/* "%lo" = "0" - "37777777777" or "-20000000000" - "17777777777" */
+# define BUF_SIZE 13
+#endif
+
#if _DEBUG
extern void io_long (unsigned long);
extern void io_str (char *);
#if _DEBUG
extern void io_long (unsigned long);
extern void io_str (char *);
@@
-156,8
+164,7
@@
vfprintf (FILE * stream, const char *fmt, va_list ap)
int count = 0;
char *str, *ch;
long val;
int count = 0;
char *str, *ch;
long val;
-// static char buffer[16];
- char buffer[16];
+ char buffer[BUF_SIZE];
#if _DEBUG
io_str ("vfprintf: ");
#if _DEBUG
io_str ("vfprintf: ");