remove str(n)dupa usages
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 11 May 2015 15:33:42 +0000 (16:33 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Mon, 11 May 2015 15:45:30 +0000 (16:45 +0100)
commit82116f63ab76c25325264c03798766b347417110
tree3f84de23fb9e86e927b8b737dd64c4b09acdf43d
parent413463d2cd39209e141ba1e3fc6c42f7aa4beb2b
remove str(n)dupa usages

str(n)dupa are GNU extensions that duplicate a string, using an alloca'd
buffer. This patch removes their definitions from e.h (which should only
contain E's own API, without fallback definitions for libc functions)
which were wrong anyway (they failed in cases where str(n)dupa was an
actual function, not a macro).

Instead, we replace them depending on context with alloca+memcpy+strlen
or a static buffer (used in contexts where we are sure that the buffer
will contain the string entirely)

@fix
src/bin/e.h
src/bin/e_actions.c
src/bin/e_fm.c
src/bin/e_fm/e_fm_ipc.c
src/bin/e_fm_op.c
src/bin/e_import_config_dialog.c
src/bin/e_intl.c
src/bin/e_theme.c
src/modules/conf_display/e_int_config_desks.c
src/modules/wizard/page_020.c