OSDN Git Service

Add missing NULL sentinel.
authorKoushik Dutta <koushd@gmail.com>
Mon, 29 Jul 2013 01:29:34 +0000 (18:29 -0700)
committerKoushik Dutta <koushd@gmail.com>
Mon, 29 Jul 2013 01:29:34 +0000 (18:29 -0700)
Change-Id: I95b86d8e60d54a54280dae89ab93ff7eb322fe18

Superuser/jni/su/su.c

index 177ca2a..603a22d 100644 (file)
@@ -75,7 +75,7 @@ void exec_log(char *priority, char* logline) {
       dup2(null, 0);
       dup2(null, 1);
       dup2(null, 2);
-      execl("/system/bin/log", "/system/bin/log", "-p", priority, "-t", LOG_TAG, logline);
+      execl("/system/bin/log", "/system/bin/log", "-p", priority, "-t", LOG_TAG, logline, NULL);
       _exit(0);
   }
 }