Fixed coverity issue in rm_server.c
authorJustin Sobota <jsobota@ti.com>
Mon, 19 Jan 2015 16:24:14 +0000 (11:24 -0500)
committerJustin Sobota <jsobota@ti.com>
Mon, 19 Jan 2015 16:24:14 +0000 (11:24 -0500)
test/armv7/linux/rm_server.c

index 6e146167b3a205c84f1a10ce4341cc3f7a8743f4..e1f1f8a1b649eabaa24e8edccc23e539f2a0e1ca 100644 (file)
@@ -130,7 +130,7 @@ void rmsrv_log(const int loglevel, const char* functionName, const char* fileNam
     va_list     args;
     struct stat fbuf;
 
-    snprintf(lineno_a, MAX_PRE_LOG_BUF_LEN, "%d", lineNo);
+    snprintf(lineno_a, sizeof(lineno_a), "%d", lineNo);
 
     rmsrv_log_buf[0] = 0;