summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInkyun Kil <inkyun.kil@samsung.com>2014-03-07 13:40:23 +0900
committerInkyun Kil <inkyun.kil@samsung.com>2014-03-07 13:44:28 +0900
commit3f82d6115368fb5a2d799436aecc7b339e6ae373 (patch)
treeaae4691e32b96803092d39b790b7db2ac7239050
parentbc2fb69c89c2046e58a1cd47a4b59acb43405bfa (diff)
parent6060be6994a7a5e46790f0187f023b5dad18429a (diff)
downloadheynoti-accepted/tizen_tv.tar.gz
heynoti-accepted/tizen_tv.tar.bz2
heynoti-accepted/tizen_tv.zip
Conflicts: packaging/heynoti.spec
-rwxr-xr-xheynoti.c6
-rw-r--r--packaging/heynoti.spec3
2 files changed, 7 insertions, 2 deletions
diff --git a/heynoti.c b/heynoti.c
index 2d4b8cc..aed59d3 100755
--- a/heynoti.c
+++ b/heynoti.c
@@ -266,10 +266,12 @@ static int __handle_event(int fd)
return -1;
if (ie.len > 0u) {
- read(fd, name, (ie.len > FILENAME_MAX) ? (size_t)FILENAME_MAX : (size_t) ie.len);
+ r = read(fd, name, (ie.len > FILENAME_MAX) ? (size_t)FILENAME_MAX : (size_t) ie.len);
}
- r = read(fd, &ie, sizeof(ie));
+ if(r > 0) {
+ r = read(fd, &ie, sizeof(ie));
+ }
}
return 0;
diff --git a/packaging/heynoti.spec b/packaging/heynoti.spec
index a3a2ceb..d9135ee 100644
--- a/packaging/heynoti.spec
+++ b/packaging/heynoti.spec
@@ -43,6 +43,8 @@ make %{?_smp_mflags}
%make_install
mkdir -p %{buildroot}%{TZ_SYS_SHARE}/noti
+mkdir -p %{buildroot}/usr/share/license
+install LICENSE %{buildroot}/usr/share/license/%{name}
%post -p /sbin/ldconfig
@@ -56,6 +58,7 @@ mkdir -p %{buildroot}%{TZ_SYS_SHARE}/noti
%{_libdir}/libheynoti.so.0.0.2
%{_bindir}/heynotitool
%attr(1755,root,root) %{TZ_SYS_SHARE}/noti
+/usr/share/license/%{name}
%files devel