summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-04-13 13:54:57 +0200
committerGravatar Nikias Bassen2009-04-13 13:54:57 +0200
commitd6e0cb81973e99aa61c4b36e3e4a4dcd475c1e59 (patch)
tree6308d0a4d41296107204082c5e73d309135cc014
parent322a3e80835aacc2abaa802545143ebde69d21da (diff)
downloadusbmuxd-d6e0cb81973e99aa61c4b36e3e4a4dcd475c1e59.tar.gz
usbmuxd-d6e0cb81973e99aa61c4b36e3e4a4dcd475c1e59.tar.bz2
[URGENT][BUGFIX] use device_count++ instead of device++. No further comment.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6b1b6ce..87104d3 100644
--- a/main.c
+++ b/main.c
@@ -653,7 +653,7 @@ connect:
devices = (struct device_info**)realloc(devices, sizeof(struct device_info*) * (device_count+1));
if (devices) {
devices[device_count] = cur_dev;
- devices++;
+ device_count++;
}
pthread_mutex_unlock(&usbmux_mutex);
} else {