]> saetta.ns0.it Git - libzakcgi/commitdiff
Deleted last char of fields (a carriage return).
authorAndrea Zagli <azagli@libero.it>
Tue, 5 May 2020 18:46:37 +0000 (20:46 +0200)
committerAndrea Zagli <azagli@libero.it>
Tue, 5 May 2020 18:46:37 +0000 (20:46 +0200)
src/main.c

index e2ccd39982339f41e7312f68de19de6965e6ff22..938ff2db9ea2795815abc58129a16f3e9ae4e8f2 100644 (file)
@@ -1099,7 +1099,7 @@ static GHashTable
                                        else
                                                {
                                                        param_value = g_data_input_stream_read_upto (dataistream, "", -1, &length, NULL, NULL);
-                                                       param_value[length - 1] = '\0';
+                                                       param_value[length - 2] = '\0';
                                                }
 
                                        gval_tmp = g_new0 (GValue, 1);