projects
/
platform
/
core
/
uifw
/
libtpl-egl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95c31d4
)
Change the function of describing error number: strerror to strerror_r
85/62685/1
accepted/tizen/common/20160318.145601
accepted/tizen/ivi/20160318.113546
accepted/tizen/mobile/20160318.113325
accepted/tizen/tv/20160318.113429
accepted/tizen/wearable/20160318.113405
submit/tizen/20160317.105611
author
Mun, Gwan-gyeong
<kk.moon@samsung.com>
Thu, 17 Mar 2016 10:42:12 +0000
(19:42 +0900)
committer
Mun, Gwan-gyeong
<kk.moon@samsung.com>
Thu, 17 Mar 2016 10:42:12 +0000
(19:42 +0900)
because strerror_r is thread safe.
Change-Id: I37b59e15c63f5af7a29d1dcff0850beb8d60358e
src/tpl_utils.h
patch
|
blob
|
history
diff --git
a/src/tpl_utils.h
b/src/tpl_utils.h
index
642f091
..
f99186a
100644
(file)
--- a/
src/tpl_utils.h
+++ b/
src/tpl_utils.h
@@
-677,7
+677,9
@@
__tpl_util_image_dump_bmp(const char *file, const void *data, int width,
FILE *fp = NULL;
if ((fp = fopen (file, "wb")) == NULL) {
- printf("FILE ERROR:%s\t", strerror(errno));
+ char ment[256];
+ strerror_r(errno, ment, 256);
+ printf("FILE ERROR:%s\t", ment);
return -2;
} else {
bmpfile_header.filesz = sizeof (bmpfile_magic) + sizeof (bmpfile_header) +