Age | Commit message (Collapse) | Author | Files | Lines |
|
If read() fails, it returns -1.
It will generate unpredictable result when compare -1 and sizeof()'s
size_t(unsigned) value.
By the way, cast “ssize_t” to “size_t” to slience the warning.
Bug-AGL:SPEC-2422
Change-Id: Ib56c1ebbcaaac48600a6747d5cc013c407dc14dd
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
The second index should point to next arg. It's my fault in the former
patch.
Because strlen do no calculate the string termination character,
the string length should plus 1.
Bug-AGL: SPEC-2422
Change-Id: Iadf3a74d7e5ef813a054aa3c62e9bbd8e5f84371
Signed-off-by: wanglu <wang_lu@dl.cn.nexty-ele.com>
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
The patch below does:
1) As d_name type may hold 255(NAME_MAX) characters at most,
so I enlarge the array length to include the proper size.
maxX and maxY are s32(int32) type(-2,147,483,648 ~ +2,147,483,647),
which will cost 11 characters at most when writing to the arrary.
Also silence the warning.
2) Replace sprintf with snprintf, a safer version;
3) Improve indent;
4) Remove debug sentence.
Bug-AGL: SPEC-2422
Change-Id: I6d83a92a3138decd2bc9b750b9659d581a9f1b6b
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
This patch will remove warning:
"warning: operation on ‘index’ may be undefined [-Wsequence-point]"
Bug-AGL: SPEC-2422
Change-Id: I7c3f630861da31af17ce1a0a415c79fc0acd6637
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
|
|
1.Add autobuild
2.Replace literal with notation in tsutils/tsrecorder/tsrecorder.c
3.Update LICENSE and COPYRIGHT
This is a logging app with following functions included:
1.video recording
2.Audio recording
3.Can data recording & playing
4.Screen touch event recording & playing
Change-Id: Id7942e16f87e69d25240f4985d3c47bc262d25c2
Signed-off-by: wanglu <wang_lu@dl.cn.nexty-ele.com>
|