summaryrefslogtreecommitdiffstats
path: root/tsutils
AgeCommit message (Collapse)AuthorFilesLines
2019-08-28tsrecorder.c:Fix return value check of read()Li Xiaoming1-3/+7
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> (cherry picked from commit ee6c0cc56304467061f9a60f3f96d07d741f327f)
2019-08-28Merge "Fix index undefined warning" into halibutJan-Simon Moeller1-1/+2
2019-08-22Remove potential overflow risk & improve indentLi Xiaoming1-17/+20
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>
2019-08-06Fix index undefined warningLi Xiaoming1-1/+2
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>
2019-04-12Fix review problems:halibut_7.99.2halibut_7.99.1halibut/7.99.2halibut/7.99.17.99.27.99.1wanglu6-0/+593
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>