From: Son Hyunjun Date: Thu, 12 Apr 2012 15:38:30 +0000 (+0900) Subject: [Title] fix bug : qemu down getting detail info in Windows X-Git-Tag: TizenStudio_2.0_p2.3~1510 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80474c611616db9470b2dac9d2851a7de9aa043b;p=sdk%2Femulator%2Fqemu.git [Title] fix bug : qemu down getting detail info in Windows [Type] Bugfix [Module] Skin [Priority] Minor [CQ#] [Redmine#] [Problem] [Cause] [Solution] Change-Id: I89c64424b132348afeba8a3cb15b84f74aae01a9 --- diff --git a/tizen/src/skin/maruskin_operation.c b/tizen/src/skin/maruskin_operation.c index f6ebe61..52dde7e 100644 --- a/tizen/src/skin/maruskin_operation.c +++ b/tizen/src/skin/maruskin_operation.c @@ -283,7 +283,8 @@ DetailInfo* get_detail_info( int qemu_argc, char** qemu_argv ) { char hax_error[HAX_LEN]; memset( hax_error, 0, HAX_LEN ); - int hax_err_len = sprintf( hax_error + hax_err_len, "%s", "hax_error=" ); + int hax_err_len = 0; + hax_err_len = sprintf( hax_error + hax_err_len, "%s", "hax_error=" ); int error = 0; if ( !ret_hax_init ) { @@ -317,7 +318,7 @@ DetailInfo* get_detail_info( int qemu_argc, char** qemu_argv ) { } #ifdef _WIN32 - sprintf( info_data + total_len, "%s", hax_error ); + snprintf( info_data + total_len, hax_err_len, "%s", hax_error ); total_len += hax_err_len; #endif