X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=panel-plugin%2Fhdaps.c;h=776477d0bddf26901902ce59c15ee4ac74e8b2bb;hb=ab31414f32e0c386fb8d3926e805395a701fe6a3;hp=4254d720ca822660b5e0d683d53542cfc9f322ba;hpb=60ffd1d1b7266d9a030b2c864135ff444f0cb917;p=xfce4-hdaps.git diff --git a/panel-plugin/hdaps.c b/panel-plugin/hdaps.c index 4254d72..776477d 100644 --- a/panel-plugin/hdaps.c +++ b/panel-plugin/hdaps.c @@ -69,8 +69,8 @@ int get_hdaps_device_list(char list[MAX_HDAPS_DEVICES][FILENAME_MAX]) { while ((ep = readdir(dp)) && list_idx < MAX_HDAPS_DEVICES) { /* This next test covers "." and ".." too. */ if (hdaps_device_exists(ep->d_name)) { - strncpy(list[list_idx], ep->d_name, FILENAME_MAX); - list_idx++; + strncpy(list[list_idx], ep->d_name, FILENAME_MAX); + list_idx++; } }