X-Git-Url: http://gitweb.michael.orlitzky.com/?p=xfce4-hdaps.git;a=blobdiff_plain;f=panel-plugin%2Fhdaps.c;h=776477d0bddf26901902ce59c15ee4ac74e8b2bb;hp=4254d720ca822660b5e0d683d53542cfc9f322ba;hb=a6a355e5f1a8fcc4e46f10a1a828ffee3809e122;hpb=913e10bcfd5d4c7328691635313d07a4bfe2a0f2 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++; } }