int len = strlen(HOST_IP_PREFIX);
int i, j;
int max_len = strlen(buf);
- for(i = len, j = 0; i < max_len; i++) {
- if (buf[i] == ' ' || buf[i] == '\0')
+ for (i = len, j = 0; i < max_len; i++) {
+ if (buf[i] == ' ' || buf[i] == '\0') {
break;
+ }
buf_host_ip[j++] = buf[i];
}
const char *sdcard_path;
int path_length = strnlen(sdcard_abs_path, sizeof(sdcard_abs_path));
- if (sdcard_abs_path[path_length - 1] != '\\')
+ if (sdcard_abs_path[path_length - 1] != '\\') {
sdcard_path = g_strdup_printf("%s\\", sdcard_abs_path);
- else
+ } else {
sdcard_path = g_strdup(sdcard_abs_path);
+ }
#endif
g_free((void*)sdcard_rel_path);