> len = snprintf(fname, 99, "%s", buf);> - fname[len-1] = '\0';Since it appears that's the only time len is actually used in that function canyou please remove the variable len completely as part of the patch?