فهرست منبع

Update flipper_http.h

jblanked 1 سال پیش
والد
کامیت
18c6e2ec77
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      flipper_http.h

+ 1 - 1
flipper_http.h

@@ -1235,7 +1235,7 @@ void flipper_http_rx_callback(const char *line, void *context)
             strstr(trimmed_line, "[PUT/END]") == NULL &&
             strstr(trimmed_line, "[DELETE/END]") == NULL)
         {
-            fhttp.last_response = (char *)line;
+            strncpy(fhttp.last_response, trimmed_line, RX_BUF_SIZE);
         }
     }
     free(trimmed_line); // Free the allocated memory for trimmed_line