Merge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde...
[oweals/cde.git] / cde / programs / dticon / fileIODialog.c
index bb3ca7d03f1e043c36fcee793bc13507dfdbbe45..8e51ea38aae3f3363f04876da37aa66a18470169 100644 (file)
@@ -177,7 +177,7 @@ create_fileIODialog( void )
        char    *home;
 
        home = getenv("HOME");
-       sprintf(buf, "%s/%s/icons", home, DtPERSONAL_CONFIG_DIRECTORY);
+       snprintf(buf, sizeof(buf), "%s/%s/icons", home, DtPERSONAL_CONFIG_DIRECTORY);
 
         if (0 == stat(buf, &sbuf) &&
            S_IFDIR & sbuf.st_mode &&