fix stringop-overflow 52/278552/1
authorJunkyeong Kim <jk0430.kim@samsung.com>
Fri, 22 Jul 2022 02:55:39 +0000 (11:55 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Fri, 22 Jul 2022 02:55:43 +0000 (11:55 +0900)
Change-Id: If2b841e668dd427587a1b71175f8935f3f149123
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/e_mod_rdp.c

index bd2f3bc..e05f0dd 100644 (file)
@@ -1670,7 +1670,7 @@ _e_rdp_certificate(E_Rdp_Backend *b)
         else
           {
              strncat(path, temp, RDP_PATH_LEN - strlen(path));
-             strncat(path, "/", 1);
+             strncat(path, "/", RDP_PATH_LEN - strlen(path));
              if (_e_rdp_dir_check(path) == EINA_FALSE)
                {
                   if ((mkdir(path, 0755)) < 0)