This website works better with JavaScript.
Home
Help
Register
Sign In
mirrors
/
libowfat
mirror of
/home/gitosis/repositories/libowfat.git
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
fmt_long did not count the '-'
master
Felix von Leitner
19 years ago
parent
841130690f
commit
e518d7e0f0
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
CHANGES
+1
-1
fmt/fmt_long.c
+ 4
- 0
CHANGES
View File
@ -1,3 +1,7 @@
0.11:
fix fmt_long (didn't count the '-'), which in turn broke
buffer_putlong
0.10:
add comment to stralloc.h that explains the structure (Markus Brischke)
fix socket routines (two cut-and-paste errors)
+ 1
- 1
fmt/fmt_long.c
View File
@ -3,7 +3,7 @@
unsigned
int
fmt_long
(
char
*
dest
,
long
int
i
)
{
if
(
i
<
0
)
{
if
(
dest
)
*
dest
=
'
-
'
;
return
fmt_ulong
(
dest
+
1
,
-
i
)
;
return
fmt_ulong
(
dest
+
1
,
-
i
)
+
1
;
}
else
return
fmt_ulong
(
dest
,
i
)
;
}
Write
Preview
Loading…
Cancel
Save