OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc68e48
)
w32_utf8_to_mbs(): null-terminate string
author
Starg
<starg@users.osdn.me>
Tue, 9 Jan 2018 01:58:15 +0000
(10:58 +0900)
committer
Starg
<starg@users.osdn.me>
Tue, 9 Jan 2018 01:58:15 +0000
(10:58 +0900)
timidity/common.c
patch
|
blob
|
history
diff --git
a/timidity/common.c
b/timidity/common.c
index
5853dfc
..
5daff5d
100644
(file)
--- a/
timidity/common.c
+++ b/
timidity/common.c
@@
-1695,6
+1695,7
@@
char *w32_utf8_to_mbs(const char *str)
safe_free(buff8);
return NULL;
}
+ buff8[buff8_size] = '\0';
return buff8;
}
#endif